83% w2o-admin-drop-down-menu

Code Review | W2O Admin Dropdown Menu

WordPress plugin W2O Admin Dropdown Menu scored 83% from 54 tests.

About plugin

  • Plugin page: w2o-admin-drop-do...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Jan 24, 2016
  • Latest release: Sep 3, 2018
  • Number of updates: 59
  • Update frequency: every 16.2 days
  • Top authors: shishir.adhikari (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

400+ active / 11,879 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.53ms] Passed 4 tests

Analyzing server-side resources used by W2O Admin Dropdown Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.66 ▼0.80
Dashboard /wp-admin3.38 ▲0.0770.23 ▲20.16
Posts /wp-admin/edit.php3.43 ▲0.0748.66 ▼0.12
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.98 ▼12.91
Media Library /wp-admin/upload.php3.29 ▲0.0736.90 ▲3.70

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for W2O Admin Dropdown Menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲18913.29 ▼1.111.94 ▲0.1542.41 ▼0.48
Dashboard /wp-admin2,274 ▲865.91 ▲0.03119.52 ▲14.2738.29 ▼3.79
Posts /wp-admin/edit.php2,170 ▲812.09 ▲0.0244.48 ▲5.9732.31 ▼1.10
Add New Post /wp-admin/post-new.php1,655 ▲12123.30 ▲0.05668.35 ▲22.3160.67 ▲9.21
Media Library /wp-admin/upload.php1,463 ▲754.31 ▲0.0898.44 ▼2.2043.26 ▲0.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/w2o-admin-drop-down-menu/core/w2oadm.responsive.css.php
    • > /wp-content/plugins/w2o-admin-drop-down-menu/core/w2oadm.css.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
  • Screenshots: Please add an image for screenshot #1 (W2O Admin Dropdown Menu in action)
The official readme.txt is a good inspiration

w2o-admin-drop-down-menu/w2o-admin-drop-down-menu.php 92% from 13 tests

The primary PHP file in "W2O Admin Dropdown Menu" version 3.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 354 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,593 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS2148143510
PHP4119131503
Sass41445500
JavaScript1221280

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png20.50KB9.00KB▼ 56.06%