84% add-toolbar-content-links

Code Review | Admin Toolbar Content Links

WordPress plugin Admin Toolbar Content Links scored 84% from 54 tests.

About plugin

  • Plugin page: add-toolbar-conte...
  • Plugin version: 1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Jan 8, 2014
  • Latest release: Jul 14, 2021
  • Number of updates: 27
  • Update frequency: every 101.6 days
  • Top authors: circlecube (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,123 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Admin Toolbar Content Links
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.28 ▼6.68
Dashboard /wp-admin3.34 ▲0.0350.27 ▼24.66
Posts /wp-admin/edit.php3.39 ▲0.0345.36 ▼5.70
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.65 ▼4.27
Media Library /wp-admin/upload.php3.26 ▲0.0337.00 ▲2.27

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Admin Toolbar Content Links
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲12813.62 ▼0.311.70 ▼0.5643.59 ▼9.39
Dashboard /wp-admin2,239 ▲544.87 ▼0.99101.05 ▼16.3136.53 ▼17.07
Posts /wp-admin/edit.php2,119 ▲302.05 ▲0.0636.10 ▲0.8331.67 ▼2.96
Add New Post /wp-admin/post-new.php1,540 ▲2117.68 ▼5.69664.45 ▲2.7254.77 ▲0.05
Media Library /wp-admin/upload.php1,421 ▲334.16 ▼0.06105.79 ▼6.2747.41 ▲0.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-toolbar-content-links/add-toolbar-content-links.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === add-toolbar-content-links === )
You can look at the official readme.txt

add-toolbar-content-links/add-toolbar-content-links.php 92% from 13 tests

Analyzing the main PHP file in "Admin Toolbar Content Links" version 1.1
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.3" instead of "5.2")

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
Good job! No executable or dangerous file extensions detected153 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13131153

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin