78% basic-developer-tools

Code Review | Basic Developer Tools

WordPress plugin Basic Developer Tools scored78%from 54 tests.

About plugin

  • Plugin page: basic-developer-t...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Aug 28, 2014
  • Latest release: Nov 22, 2015
  • Number of updates: 7
  • Update frequency: every 64.7 days
  • Top authors: stefanboonstra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /949 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.34ms] Passed 4 tests

An overview of server-side resources used by Basic Developer Tools
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.76 ▼3.69
Dashboard /wp-admin3.32 ▼0.0346.30 ▼13.67
Posts /wp-admin/edit.php3.37 ▲0.0147.41 ▲0.96
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.23 ▼12.95
Media Library /wp-admin/upload.php3.24 ▲0.0132.62 ▲1.91
Developer Tools /wp-admin/admin.php?page=developer-tools3.2326.81
Log /wp-admin/admin.php?page=developer-tools-logger3.2330.75

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Basic Developer Tools
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.21 ▼1.434.26 ▲2.4537.54 ▼6.07
Dashboard /wp-admin2,237 ▲464.84 ▼0.03111.91 ▼5.3442.94 ▼4.35
Posts /wp-admin/edit.php2,123 ▲342.03 ▲0.0341.07 ▲3.7635.12 ▼1.68
Add New Post /wp-admin/post-new.php1,540 ▲717.89 ▼5.64664.76 ▲5.5661.76 ▲7.49
Media Library /wp-admin/upload.php1,416 ▲284.20 ▲0.0191.73 ▼15.8241.39 ▼3.16
Developer Tools /wp-admin/admin.php?page=developer-tools8082.0527.3129.97
Log /wp-admin/admin.php?page=developer-tools-logger8512.2831.5724.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/basic-developer-tools/views/admin-info.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/basic-developer-tools/basic-developer-tools.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/basic-developer-tools/views/admin-log.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=developer-tools-logger
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=developer-tools-logger 0:0 Uncaught SyntaxError: Unexpected token '

Optimizations

Plugin configuration 90% 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
Attributes that need to be fixed:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

basic-developer-tools/basic-developer-tools.php 85% from 13 tests

The main PHP script in "Basic Developer Tools" version 1.0.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 149 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
Success! There were no dangerous files found in this plugin356 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP668162315
PO File181136
CSS1003
JavaScript1002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.25
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods22
▷ Static methods2195.45%
▷ Public methods2195.45%
▷ Protected methods14.55%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected