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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.78 ▼3.12 |
Dashboard /wp-admin | 3.44 ▲0.09 | 54.65 ▼6.89 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 53.09 ▼2.01 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 96.05 ▼22.18 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 42.78 ▲5.71 |
WP Dev Toolkit /wp-admin/admin.php?page=wp-developer-toolkit/wordpress-developer-toolkit.php | 3.33 | 34.78 |
Stats /wp-admin/admin.php?page=wpdt_stats | 3.31 | 35.74 |
WPDT About /wp-admin/index.php?page=wpdt_about | 3.32 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.35 ▼0.25 | 1.74 ▲0.05 | 42.40 ▲2.51 |
Dashboard /wp-admin | 2,225 ▲45 | 5.59 ▼0.01 | 95.94 ▲7.52 | 42.33 ▼3.26 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 1.97 ▼0.03 | 39.33 ▼2.64 | 34.87 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 23.25 ▲0.25 | 704.58 ▲11.62 | 52.25 ▼9.04 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.18 ▼0.05 | 94.24 ▼23.26 | 48.01 ▲1.29 |
WP Dev Toolkit /wp-admin/admin.php?page=wp-developer-toolkit/wordpress-developer-toolkit.php | 962 | 2.15 | 23.75 | 32.84 |
Stats /wp-admin/admin.php?page=wpdt_stats | 846 | 1.90 | 45.96 | 31.55 |
WPDT About /wp-admin/index.php?page=wpdt_about | 899 | 1.99 | 22.68 | 54.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 67 | 352 | 711 |
LESS | 1 | 11 | 1 | 77 |
JavaScript | 2 | 1 | 9 | 22 |
Markdown | 1 | 0 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
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 code | 0.18 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 3 | 8.11% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 14.28KB | 10.77KB | ▼ 24.57% |
assets/screenshot-4.png | 23.32KB | 9.35KB | ▼ 59.91% |
assets/screenshot-3.png | 25.79KB | 14.52KB | ▼ 43.69% |
assets/screenshot-1.png | 47.12KB | 30.62KB | ▼ 35.02% |