84% superfish

Code Review | Superfish Menus

WordPress plugin Superfish Menus scored84%from 54 tests.

About plugin

  • Plugin page: superfish
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Jan 9, 2013
  • Latest release: Jan 2, 2014
  • Number of updates: 7
  • Update frequency: every 51.1 days
  • Top authors: matthodder (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

400+ active /13,296 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.01MB] [CPU: ▼2.58ms] Passed 4 tests

Analyzing server-side resources used by Superfish Menus
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.36 ▼20.01
Dashboard /wp-admin3.31 ▲0.0147.15 ▼0.22
Posts /wp-admin/edit.php3.36 ▲0.0151.90 ▲7.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.96 ▲7.54
Media Library /wp-admin/upload.php3.23 ▲0.0036.53 ▲2.36

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Superfish Menus
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲17313.57 ▼1.055.53 ▲3.3337.09 ▼7.43
Dashboard /wp-admin2,206 ▲215.85 ▼0.07110.46 ▼2.3243.45 ▼1.88
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0239.16 ▲3.9137.58 ▲3.65
Add New Post /wp-admin/post-new.php1,533 ▼923.10 ▲4.81612.55 ▲14.3950.97 ▼0.88
Media Library /wp-admin/upload.php1,391 ▲64.17 ▼0.0297.19 ▼2.1442.50 ▼0.90

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
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/superfish/superfish.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === superfish === )
You can look at the official readme.txt

superfish/superfish.php Passed 13 tests

Analyzing the main PHP file in "Superfish Menus" version 1.1.1
54 characters long description:
Adds jQuery Superfish effects to most WordPress menus.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin242 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21715234
PHP1288

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin