84% wp-spry-menu

Code Review | WP Spry Menu

WordPress plugin WP Spry Menu scored84%from 54 tests.

About plugin

  • Plugin page: wp-spry-menu
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Jun 30, 2009
  • Latest release: Aug 10, 2014
  • Number of updates: 48
  • Update frequency: every 38.9 days
  • Top authors: takien (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /31,057 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.00ms] Passed 4 tests

An overview of server-side resources used by WP Spry Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1340.07 ▼1.46
Dashboard /wp-admin3.46 ▲0.1250.62 ▼1.92
Posts /wp-admin/edit.php3.57 ▲0.1852.81 ▲2.24
Add New Post /wp-admin/post-new.php6.06 ▲0.1389.46 ▼13.08
Media Library /wp-admin/upload.php3.38 ▲0.1138.34 ▲0.47
Spry Menu /wp-admin/themes.php?page=wp-spry-menu3.4034.84

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP Spry Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.70 ▲0.121.90 ▲0.1040.06 ▼0.85
Dashboard /wp-admin2,208 ▲285.65 ▼0.0284.51 ▼8.3939.78 ▼1.43
Posts /wp-admin/edit.php2,107 ▲72.02 ▼0.0135.10 ▼0.1434.51 ▼2.22
Add New Post /wp-admin/post-new.php1,535 ▲923.59 ▲0.61683.08 ▲13.6564.38 ▼2.08
Media Library /wp-admin/upload.php1,404 ▲104.24 ▼0.0399.12 ▼9.3445.38 ▲0.55
Spry Menu /wp-admin/themes.php?page=wp-spry-menu1,1772.0026.0930.18

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/themes.php?page=wp-spry-menu
    • > Network (severe)
    wp-content/plugins/wp-spry-menu/themes/style.css?ver=1.5.2 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: horizontal menu, menu, dropdown menu, css menu, vertical menu...

wp-spry-menu/wp-spry-menu.php Passed 13 tests

"WP Spry Menu" version 1.5.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
62 characters long description:
Automatically create spry dropdown menu for Wordpress Category

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,125 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP27058547
CSS911161344
JavaScript13266234

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity29.50
▷ Minimum class complexity27.00
▷ Maximum class complexity32.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/options/images/icon-large.png1.36KB1.33KB▼ 2.01%
inc/options/images/icon-small.png0.35KB0.37KB0.00%