84% show-plugin-menu-items-on-activation

Code Review | Show Plugin Menu Items on Activation

WordPress plugin Show Plugin Menu Items on Activation scored84%from 54 tests.

About plugin

  • Plugin page: show-plugin-menu-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 17, 2017
  • Latest release: Apr 17, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: kellenmace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.29ms] Passed 4 tests

A check of server-side resources used by Show Plugin Menu Items on Activation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.70 ▼7.99
Dashboard /wp-admin3.32 ▲0.0245.75 ▼3.31
Posts /wp-admin/edit.php3.37 ▲0.0150.29 ▲5.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.25 ▼4.07
Media Library /wp-admin/upload.php3.24 ▲0.0137.59 ▲2.20

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Show Plugin Menu Items on Activation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲4613.23 ▼1.071.94 ▲0.2644.84 ▲0.12
Dashboard /wp-admin2,198 ▲74.83 ▼1.07109.03 ▲9.7336.56 ▼4.22
Posts /wp-admin/edit.php2,081 ▼112.03 ▲0.0137.14 ▲1.4034.36 ▼4.07
Add New Post /wp-admin/post-new.php1,531 ▼223.14 ▲0.12664.35 ▼15.9250.42 ▲0.25
Media Library /wp-admin/upload.php1,380 ▼84.19 ▲0.0393.25 ▼16.6942.21 ▼6.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-plugin-menu-items-on-activation/show-plugin-menu-items-on-activation.php:721

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: sidebar, activate, add, new, plugin...

show-plugin-menu-items-on-activation/show-plugin-menu-items-on-activation.php Passed 13 tests

The main file in "Show Plugin Menu Items on Activation" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Identify any newly added menu items on plugin activation.

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
Good job! No executable or dangerous file extensions detected307 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1120329275
JavaScript1131232

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods41
▷ Static methods12.44%
▷ Public methods921.95%
▷ Protected methods12.44%
▷ Private methods3175.61%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin