90% admin-goto

Code Review | Admin Goto

WordPress plugin Admin Goto scored90%from 54 tests.

About plugin

  • Plugin page: admin-goto
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: May 23, 2018
  • Latest release: May 23, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: imfaber (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /699 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.04MB] [CPU: ▼3.64ms] Passed 4 tests

Server-side resources used by Admin Goto
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.54 ▼10.89
Dashboard /wp-admin3.34 ▲0.0447.51 ▼1.49
Posts /wp-admin/edit.php3.39 ▲0.0454.50 ▲4.31
Add New Post /wp-admin/post-new.php5.94 ▲0.0688.64 ▼5.41
Media Library /wp-admin/upload.php3.27 ▲0.0439.79 ▲3.23

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 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

Admin Goto: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,071 ▲33614.23 ▼0.1914.15 ▲11.9340.07 ▼6.31
Dashboard /wp-admin2,297 ▲1065.07 ▲0.21100.29 ▼10.1242.17 ▼0.57
Posts /wp-admin/edit.php2,162 ▲732.26 ▲0.2447.56 ▲13.4238.91 ▲2.07
Add New Post /wp-admin/post-new.php1,554 ▲1923.23 ▼0.02629.75 ▼46.9238.47 ▼17.02
Media Library /wp-admin/upload.php1,487 ▲1054.37 ▲0.2090.83 ▼24.2742.14 ▼3.54

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: administration menu, backend menu, admin menu

admin-goto/admin-goto.php Passed 13 tests

The main PHP file in "Admin Goto" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
122 characters long description:
The Admin Goto plugin helps you to navigate through the Wordpress admin faster, inspired by Mac apps Alfred and Spotlight.

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 plugin439 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1174184
JavaScript12636128
PHP23158114
SVG10013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods457.14%
▷ Protected methods114.29%
▷ Private methods228.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin