10% gearside-developer-dashboard

Code Review | Gearside Developer Dashboard

WordPress plugin Gearside Developer Dashboard scored 10% from 54 tests.

About plugin

  • Plugin page: gearside-develope...
  • Plugin version: 1.0.72
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Dec 9, 2014
  • Latest release: Aug 24, 2018
  • Number of updates: 14
  • Update frequency: every 96.7 days
  • Top authors: GreatBlakes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,049 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/gearside-developer-dashboard/gearside_developer_dashboard.php+691
    Methods with the same name as their class will not be constructors in a future version of PHP; Whois has a deprecated constructor

Server metrics [RAM: ▼1.53MB] [CPU: ▼50.84ms] Passed 4 tests

Server-side resources used by Gearside Developer Dashboard
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1745.35 ▼35.94
Dashboard /wp-admin2.41 ▼0.896.93 ▼36.96
Posts /wp-admin/edit.php2.41 ▼0.947.45 ▼41.37
Add New Post /wp-admin/post-new.php2.41 ▼3.477.14 ▼89.08
Media Library /wp-admin/upload.php2.41 ▼0.826.70 ▼25.53

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Gearside Developer Dashboard
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,427 ▲68113.63 ▼1.034.95 ▲2.1838.75 ▼18.14
Dashboard /wp-admin2,835 ▲6475.43 ▼0.47128.07 ▲26.2757.07 ▲15.70
Posts /wp-admin/edit.php2,100 ▲112.03 ▼0.0134.43 ▼5.7333.77 ▼0.69
Add New Post /wp-admin/post-new.php1,526 ▼823.37 ▲0.15658.76 ▼28.6953.98 ▼5.53
Media Library /wp-admin/upload.php1,390 ▲54.24 ▲0.05102.03 ▲3.2340.95 ▼6.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/gearside-developer-dashboard/gearside_developer_dashboard.php+691
    Methods with the same name as their class will not be constructors in a future version of PHP; Whois has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gearside-developer-dashboard/gearside_developer_dashboard.php:44

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: Add descriptions for screenshots #2, #3 in gearside-developer-dashboard/assets to your readme.txt
The official readme.txt might help

gearside-developer-dashboard/gearside_developer_dashboard.php 92% from 13 tests

The entry point to "Gearside Developer Dashboard" version 1.0.72 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gearside-developer-dashboard.php" instead of "gearside_developer_dashboard.php")

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
No dangerous file extensions were detected641 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1144186561
JavaScript117353
CSS18027

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity19.00
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
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