84% developer-tool

Code Review | Developer Tool

WordPress plugin Developer Tool scored84%from 54 tests.

About plugin

  • Plugin page: developer-tool
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 6.3.1
  • First release: Feb 6, 2019
  • Latest release: May 11, 2019
  • Number of updates: 9
  • Update frequency: every 10.4 days
  • Top authors: navanathbhosale (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /827 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.20ms] Passed 4 tests

An overview of server-side resources used by Developer Tool
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.83 ▼3.14
Dashboard /wp-admin3.36 ▲0.0655.03 ▲0.90
Posts /wp-admin/edit.php3.41 ▲0.0553.52 ▼4.29
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.18 ▼14.25
Media Library /wp-admin/upload.php3.29 ▲0.0538.91 ▲5.38
Developer Tool /wp-admin/options-general.php?page=dev_tool_settings3.2734.36

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Developer Tool
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7514.69 ▲0.271.80 ▲0.1943.23 ▲1.46
Dashboard /wp-admin2,216 ▲425.63 ▼0.0494.67 ▼2.3246.35 ▲5.00
Posts /wp-admin/edit.php2,127 ▲272.00 ▲0.0340.52 ▼0.5955.54 ▲17.10
Add New Post /wp-admin/post-new.php1,554 ▲2818.47 ▼5.21640.48 ▼33.8460.01 ▲6.49
Media Library /wp-admin/upload.php1,430 ▲334.23 ▼0.0095.08 ▼17.5442.84 ▼3.93
Developer Tool /wp-admin/options-general.php?page=dev_tool_settings9172.0424.5929.08

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • dev_tool_plugin_redirect

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please 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 plugin_basename() in wp-content/plugins/developer-tool/developer-tool.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings page), #2 (Admin bar error highlighter)
You can look at the official readme.txt

developer-tool/developer-tool.php 92% from 13 tests

The main file in "Developer Tool" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin351 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP496135324
CSS14027

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity14.00
▷ Minimum class complexity10.00
▷ Maximum class complexity18.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods320.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin