90% alligator-menu-popup

Code Review | Alligator Menu Popup

WordPress plugin Alligator Menu Popup scored90%from 54 tests.

About plugin

  • Plugin page: alligator-menu-popup
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2014
  • Latest release: Feb 20, 2023
  • Number of updates: 44
  • Update frequency: every 73.8 days
  • Top authors: numeeja (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

900+ active /18,582 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.68ms] Passed 4 tests

A check of server-side resources used by Alligator Menu Popup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.89 ▼2.82
Dashboard /wp-admin3.32 ▲0.0145.96 ▼4.79
Posts /wp-admin/edit.php3.37 ▲0.0147.70 ▲1.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.91 ▼4.81
Media Library /wp-admin/upload.php3.24 ▲0.0136.63 ▲4.26
Menu Popup /wp-admin/options-general.php?page=mpopup-settings3.2031.92

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
cc_mpopup_scroll
cc_mpopup_width
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
cc_mpopup_height

Browser metrics Passed 4 tests

An overview of browser requirements for Alligator Menu Popup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.26 ▼1.141.70 ▼0.8239.34 ▼2.46
Dashboard /wp-admin2,212 ▲215.80 ▲0.9195.14 ▼21.8737.48 ▼10.22
Posts /wp-admin/edit.php2,095 ▲92.04 ▲0.0434.71 ▼1.0735.77 ▲0.28
Add New Post /wp-admin/post-new.php1,534 ▼123.08 ▼0.14628.88 ▼47.2860.40 ▲9.05
Media Library /wp-admin/upload.php1,391 ▲64.21 ▼0.1596.68 ▲1.9040.27 ▼2.66
Menu Popup /wp-admin/options-general.php?page=mpopup-settings8772.0522.3831.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • cc_mpopup_height
    • cc_mpopup_scroll
    • cc_mpopup_width

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
No output text or server-side errors detected on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

alligator-menu-popup/alligator-menu-popup.php Passed 13 tests

The primary PHP file in "Alligator Menu Popup" version 2.0.0 is used by WordPress to initiate all plugin functionality
92 characters long description:
Add the 'mpopup' class to a menu item in a custom menu to open the target in a popup Window.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin157 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2486392
CSS111448
JavaScript17017

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions6
▷ Named functions6100.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
There are no PNG files in this plugin