90% plugins-site-menu-link

Code Review | Plugins Site Menu Link

WordPress plugin Plugins Site Menu Link scored90%from 54 tests.

About plugin

  • Plugin page: plugins-site-menu...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Jun 12, 2014
  • Latest release: Nov 16, 2017
  • Number of updates: 5
  • Update frequency: every 250.6 days
  • Top authors: sebd86 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,170 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.00MB] [CPU: ▼5.08ms] Passed 4 tests

An overview of server-side resources used by Plugins Site Menu Link
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.14 ▼6.89
Dashboard /wp-admin3.31 ▼0.0349.98 ▼9.34
Posts /wp-admin/edit.php3.36 ▲0.0142.75 ▼2.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.68 ▼1.88
Media Library /wp-admin/upload.php3.24 ▲0.0133.77 ▼0.12

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Plugins Site Menu Link
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲4614.45 ▲0.101.62 ▼0.1838.05 ▼5.36
Dashboard /wp-admin2,195 ▲175.60 ▼0.1194.25 ▼12.6442.75 ▲3.53
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0236.28 ▲0.6437.09 ▲0.82
Add New Post /wp-admin/post-new.php1,529 ▲323.32 ▲0.17621.93 ▼88.6167.53 ▲18.95
Media Library /wp-admin/upload.php1,397 ▼64.19 ▲0.03100.92 ▼0.2446.32 ▲0.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

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 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
Please fix the following attributes: You can take inspiration from this readme.txt

plugins-site-menu-link/plugins-site-menu-link.php Passed 13 tests

Analyzing the main PHP file in "Plugins Site Menu Link" version 1.1.0
76 characters long description:
Adds a link to the Plugins management page to the site's toolbar admin menu.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192029

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for 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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin