89% magic-liquidizer-responsive-navigationbar

Code Review | Magic Liquidizer Responsive Navigationbar

WordPress plugin Magic Liquidizer Responsive Navigationbar scored89%from 54 tests.

About plugin

  • Plugin page: magic-liquidizer-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Sep 4, 2014
  • Latest release: Feb 2, 2017
  • Number of updates: 12
  • Update frequency: every 73.5 days
  • Top authors: esstat17 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,060 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.68ms] Passed 4 tests

An overview of server-side resources used by Magic Liquidizer Responsive Navigationbar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.09 ▼8.05
Dashboard /wp-admin3.33 ▲0.0346.21 ▼3.54
Posts /wp-admin/edit.php3.45 ▲0.0953.85 ▲7.13
Add New Post /wp-admin/post-new.php5.93 ▲0.0582.62 ▼12.09
Media Library /wp-admin/upload.php3.26 ▲0.0331.77 ▼3.04
Navigationbar /wp-admin/admin.php?page=magic-liquidizer-navigationbar3.2329.71
Setup Wizard /wp-admin/admin.php?page=magic-liquidizer-page-lite3.2332.35
About /wp-admin/admin.php?page=magic-liquidizer-about3.2230.41

Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 14 new options
New WordPress options
liquidizer_lite_wp_navcolor
liquidizer_lite_wp_navselect
liquidizer_lite_wp_home
widget_recent-posts
widget_theysaidso_widget
liquidizer_lite_wp_contact
widget_recent-comments
liquidizer_lite_wp_navigationbar_width
can_compress_scripts
db_upgraded
...

Browser metrics Passed 4 tests

Checking browser requirements for Magic Liquidizer Responsive Navigationbar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲21514.25 ▼0.136.50 ▲4.6139.20 ▼0.03
Dashboard /wp-admin2,253 ▲625.12 ▲0.06106.62 ▲5.5437.06 ▼5.98
Posts /wp-admin/edit.php2,144 ▲522.31 ▲0.3137.90 ▼3.6833.51 ▼3.72
Add New Post /wp-admin/post-new.php1,553 ▲1123.39 ▲0.21655.89 ▼39.5736.44 ▼18.93
Media Library /wp-admin/upload.php1,441 ▲534.44 ▲0.1897.57 ▼11.6144.21 ▼3.52
Navigationbar /wp-admin/admin.php?page=magic-liquidizer-navigationbar1,0472.5840.4429.62
Setup Wizard /wp-admin/admin.php?page=magic-liquidizer-page-lite1,3392.2446.6935.62
About /wp-admin/admin.php?page=magic-liquidizer-about8531.9726.2823.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (How does your Navigation Bar / Nav Menu look like on large screens. screenshot-1.png), #2 (Magic Liquidizer Responsive Navigation Bar - Wordpress Admin Section. screenshot-2.png), #3 (This screenshot was taken from our DEMO page AFTER installation. Mobile screens screenshot. screenshot-3.png screenshot-4.png)
The official readme.txt is a good inspiration

magic-liquidizer-responsive-navigationbar/magic-liquidizer-responsive-navigationbar.php 92% from 13 tests

"Magic Liquidizer Responsive Navigationbar" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 213 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected610 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP585111365
CSS11610131
JavaScript42952114

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.67
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.40MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png101.08KB33.51KB▼ 66.85%
screenshot.png94.35KB32.38KB▼ 65.68%
idimages/home-icon2.png1.46KB0.86KB▼ 41.11%
idimages/info-v2.png1.50KB0.86KB▼ 42.34%
screenshot-1.png20.67KB4.44KB▼ 78.52%