78% evanesco

Code Review | Admin Menu & Widget Manager

WordPress plugin Admin Menu & Widget Manager scored78%from 54 tests.

About plugin

  • Plugin page: evanesco
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.5.3
  • WordPress version: 6.3.1
  • First release: Jan 22, 2013
  • Latest release: Jul 31, 2016
  • Number of updates: 20
  • Update frequency: every 64.3 days
  • Top authors: sujin2f (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,513 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.91ms] Passed 4 tests

A check of server-side resources used by Admin Menu & Widget Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.25 ▼2.54
Dashboard /wp-admin3.35 ▲0.0044.14 ▼23.11
Posts /wp-admin/edit.php3.46 ▲0.1147.10 ▲3.79
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.17 ▼10.82
Media Library /wp-admin/upload.php3.27 ▲0.0433.58 ▲0.83
Admin Menu Manager /wp-admin/themes.php?page=admin-menu-manager3.2929.70
Widget Manager /wp-admin/themes.php?page=widget-manager3.2832.05

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Menu & Widget Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9313.21 ▼1.171.49 ▼0.1744.61 ▲3.86
Dashboard /wp-admin2,245 ▲574.89 ▼0.96115.92 ▲7.5242.49 ▼0.85
Posts /wp-admin/edit.php2,125 ▲362.04 ▲0.0441.84 ▲3.2138.79 ▲0.51
Add New Post /wp-admin/post-new.php1,388 ▼13116.70 ▼6.44508.29 ▼150.6840.88 ▼18.85
Media Library /wp-admin/upload.php1,421 ▲334.23 ▼0.0496.77 ▼9.8539.23 ▼4.34
Admin Menu Manager /wp-admin/themes.php?page=admin-menu-manager1,3521.7625.8427.21
Widget Manager /wp-admin/themes.php?page=widget-manager1,0462.0835.9427.69

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/evanesco/templates/donation.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/evanesco/classes/wp_express/autoload.php:39
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/evanesco/templates/menu_manager.php:19
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/evanesco/templates/widget_manager.php:19
    • > PHP Warning
      Use of undefined constant EVNSCO_PLUGIN_URL - assumed 'EVNSCO_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/evanesco/templates/donation.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: A description for screenshot #2 is missing in evanesco/assets to your readme.txt
Please take inspiration from this readme.txt

evanesco/evanesco.php Passed 13 tests

The primary PHP file in "Admin Menu & Widget Manager" version 3.0.1 is used by WordPress to initiate all plugin functionality
38 characters long description:
Manage Wordpress admin menu and widget

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,225 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP194682541,731
Markdown9830385
JavaScript49145
LESS25036
CSS20028

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity29.93
▷ Minimum class complexity1.00
▷ Maximum class complexity93.00
Average method complexity5.18
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces4
Interfaces0
Traits2
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods97
▷ Static methods00.00%
▷ Public methods7476.29%
▷ Protected methods66.19%
▷ Private methods1717.53%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants5
▷ Global constants5100.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
6 PNG files occupy 0.25MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
classes/wp_express/documents/images/AdminSimple_001.png39.55KB7.29KB▼ 81.57%
classes/wp_express/documents/images/AdminList_001.png91.51KB25.41KB▼ 72.24%
classes/wp_express/documents/images/AdminSimple_003.png12.90KB2.67KB▼ 79.27%
assets/images/plugin_danation_link.png25.98KB5.03KB▼ 80.64%
classes/wp_express/documents/images/AdminSimple_002.png21.92KB8.20KB▼ 62.58%