84% wp-developer-toolkit

Code Review | WordPress Developer Toolkit

WordPress plugin WordPress Developer Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: wp-developer-toolkit
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-4.2
  • WordPress version: 6.3.1
  • First release: Feb 28, 2015
  • Latest release: Jun 15, 2016
  • Number of updates: 16
  • Update frequency: every 44.7 days
  • Top authors: fpcorso (93.75%)tegonsalves (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,154 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼8.55ms] Passed 4 tests

Analyzing server-side resources used by WordPress Developer Toolkit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.78 ▼3.12
Dashboard /wp-admin3.44 ▲0.0954.65 ▼6.89
Posts /wp-admin/edit.php3.55 ▲0.1953.09 ▼2.01
Add New Post /wp-admin/post-new.php6.02 ▲0.1396.05 ▼22.18
Media Library /wp-admin/upload.php3.36 ▲0.1342.78 ▲5.71
WP Dev Toolkit /wp-admin/admin.php?page=wp-developer-toolkit/wordpress-developer-toolkit.php3.3334.78
Stats /wp-admin/admin.php?page=wpdt_stats3.3135.74
WPDT About /wp-admin/index.php?page=wpdt_about3.3233.61

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
wpdt_version

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Developer Toolkit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.35 ▼0.251.74 ▲0.0542.40 ▲2.51
Dashboard /wp-admin2,225 ▲455.59 ▼0.0195.94 ▲7.5242.33 ▼3.26
Posts /wp-admin/edit.php2,124 ▲211.97 ▼0.0339.33 ▼2.6434.87 ▼1.75
Add New Post /wp-admin/post-new.php1,550 ▲2223.25 ▲0.25704.58 ▲11.6252.25 ▼9.04
Media Library /wp-admin/upload.php1,421 ▲244.18 ▼0.0594.24 ▼23.2648.01 ▲1.29
WP Dev Toolkit /wp-admin/admin.php?page=wp-developer-toolkit/wordpress-developer-toolkit.php9622.1523.7532.84
Stats /wp-admin/admin.php?page=wpdt_stats8461.9045.9631.55
WPDT About /wp-admin/index.php?page=wpdt_about8991.9922.6854.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • wpdt_version
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpdt_stats
    • > Warning in wp-content/plugins/wp-developer-toolkit/php/wpdt_stats_page.php+105
    Division by zero

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

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

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: stats, wordpress, rating, review, download...

wp-developer-toolkit/wordpress-developer-toolkit.php 85% from 13 tests

"WordPress Developer Toolkit" version 0.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-developer-toolkit.php" instead of "wordpress-developer-toolkit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected813 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP967352711
LESS111177
JavaScript21922
Markdown1002
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods37
▷ Static methods38.11%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png14.28KB10.77KB▼ 24.57%
assets/screenshot-4.png23.32KB9.35KB▼ 59.91%
assets/screenshot-3.png25.79KB14.52KB▼ 43.69%
assets/screenshot-1.png47.12KB30.62KB▼ 35.02%