83% customize-wpadmin

Code Review | Custom Links On Admin Dashboard Toolbar

WordPress plugin Custom Links On Admin Dashboard Toolbar scored83%from 54 tests.

About plugin

  • Plugin page: customize-wpadmin
  • Plugin version: 3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-5.5
  • WordPress version: 6.3.1
  • First release: Oct 20, 2014
  • Latest release: Aug 1, 2020
  • Number of updates: 39
  • Update frequency: every 54.2 days
  • Top authors: vbarkalov (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /3,802 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 gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.99ms] Passed 4 tests

An overview of server-side resources used by Custom Links On Admin Dashboard Toolbar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.90 ▼2.56
Dashboard /wp-admin3.37 ▲0.0655.54 ▲5.39
Posts /wp-admin/edit.php3.42 ▲0.0658.55 ▲0.78
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.96 ▼23.58
Media Library /wp-admin/upload.php3.30 ▲0.0646.00 ▲7.25
Customize Admin Interface /wp-admin/options-general.php?page=customize-wpadmin-admin3.2638.81

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables
wp_customizeadmin
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Custom Links On Admin Dashboard Toolbar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.23 ▼0.041.98 ▲0.4641.44 ▲2.14
Dashboard /wp-admin2,196 ▲225.58 ▼0.0488.95 ▼4.3444.34 ▼2.27
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0537.00 ▼1.2136.92 ▼2.33
Add New Post /wp-admin/post-new.php1,529 ▼223.74 ▲0.57695.49 ▼3.7365.84 ▲1.34
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.04114.83 ▲5.7950.31 ▼1.25
Customize Admin Interface /wp-admin/options-general.php?page=customize-wpadmin-admin1,2361.9923.8429.89

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 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)
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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-wpadmin/customize-wpadmin.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% 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
These attributes need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: No descriptions were found for these screenshots #2, #3 in customize-wpadmin/assets to your readme.txt
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === customize-wpadmin === )
The official readme.txt is a good inspiration

customize-wpadmin/customize-wpadmin.php 92% from 13 tests

Analyzing the main PHP file in "Custom Links On Admin Dashboard Toolbar" version 3.3
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 264 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin478 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22628430
JavaScript25042
CSS1106

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 were not PNG files found in your plugin