84% wp-developers-tool

Code Review | WordPress Developer's Tool

WordPress plugin WordPress Developer's Tool scored84%from 54 tests.

About plugin

  • Plugin page: wp-developers-tool
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 8, 2018
  • Latest release: Apr 24, 2018
  • Number of updates: 8
  • Update frequency: every 13.6 days
  • Top authors: nikolays93 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /636 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.19MB] [CPU: ▼4.33ms] Passed 4 tests

An overview of server-side resources used by WordPress Developer's Tool
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1843.30 ▲3.63
Dashboard /wp-admin3.54 ▲0.1949.74 ▼10.09
Posts /wp-admin/edit.php3.65 ▲0.2547.91 ▼0.04
Add New Post /wp-admin/post-new.php6.12 ▲0.1985.74 ▼10.82
Media Library /wp-admin/upload.php3.46 ▲0.1941.90 ▲6.45
Advance /wp-admin/options-general.php?page=DTools3.4735.64

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options
DTools
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Developer's Tool
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,787 ▲4114.72 ▲0.061.43 ▼0.2543.71 ▲2.33
Dashboard /wp-admin2,199 ▲195.57 ▼0.0385.65 ▼8.5738.94 ▼6.93
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0434.23 ▼2.6235.03 ▼0.89
Add New Post /wp-admin/post-new.php1,531 ▲323.34 ▲0.13665.13 ▼23.1856.03 ▲4.81
Media Library /wp-admin/upload.php1,407 ▲74.21 ▲0.0194.43 ▼10.4442.09 ▼3.60
Advance /wp-admin/options-general.php?page=DTools1,3042.0638.7027.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 18× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function NikolayS93\\Tool\\add_filter() in wp-content/plugins/wp-developers-tool/includes/addons/woocommerce/wholesales.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function NikolayS93\\Tool\\add_filter() in wp-content/plugins/wp-developers-tool/includes/addons/woocommerce/pack-qty-changes.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function NikolayS93\\Tool\\add_action() in wp-content/plugins/wp-developers-tool/includes/addons/remove-emojis.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function NikolayS93\\Tool\\add_filter() in wp-content/plugins/wp-developers-tool/includes/addons/empty-content.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'NikolayS93\\Tool\\DTools' not found in wp-content/plugins/wp-developers-tool/includes/addons/admin-orign-image-resize.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function NikolayS93\\Tool\\__() in wp-content/plugins/wp-developers-tool/includes/settings/general.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function NikolayS93\\Tool\\is_admin() in wp-content/plugins/wp-developers-tool/includes/addons/woocommerce/pack-qty.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function NikolayS93\\Tool\\__() in wp-content/plugins/wp-developers-tool/includes/settings/woocommerce.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function NikolayS93\\Tool\\add_action() in wp-content/plugins/wp-developers-tool/includes/addons/init-scripts.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function NikolayS93\\Tool\\add_action() in wp-content/plugins/wp-developers-tool/includes/addons/woocommerce/plus-minus-buttons.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: wc_upgrade, theme_update, advanced_functions, multitool, own_jetpack...

wp-developers-tool/wp-developers-tool.php Passed 13 tests

The main PHP script in "WordPress Developer's Tool" version 1.2.2 is automatically included on every request by WordPress
52 characters long description:
Add more advanced functions for your Wordpress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin5,681 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
CSS2529172,801
PHP243432181,626
JavaScript910677906
PO File18487239
Markdown1490106
YAML1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity33.60
▷ Minimum class complexity1.00
▷ Maximum class complexity111.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods55
▷ Static methods2443.64%
▷ Public methods4378.18%
▷ Protected methods00.00%
▷ Private methods1221.82%
Functions35
▷ Named functions3497.14%
▷ Anonymous functions12.86%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin