Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼10.56ms] Passed 4 tests
An overview of server-side resources used by WpDevTool
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 41.40 ▲0.39 |
Dashboard /wp-admin | 3.41 ▲0.11 | 34.62 ▼14.23 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 37.85 ▼9.03 |
Add New Post /wp-admin/post-new.php | 5.66 ▼0.23 | 68.64 ▼19.36 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 35.39 ▲2.01 |
WpDevTool /wp-admin/admin.php?page=wpdevtool_admin | 3.39 | 32.22 |
Crons Table /wp-admin/admin.php?page=wpdevtool_crons | 3.39 | 32.40 |
Permalinks /wp-admin/admin.php?page=wpdevtool_permalinks | 3.39 | 29.83 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
wpdevtool_maintenance_message |
wpdevtool_redirect_email |
wpdevtool_version |
widget_recent-posts |
Browser metrics Passed 4 tests
WpDevTool: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.08 ▼0.47 | 1.88 ▲0.33 | 43.78 ▲4.64 |
Dashboard /wp-admin | 2,210 ▲30 | 5.57 ▼0.03 | 94.00 ▼0.70 | 70.94 ▲27.70 |
Posts /wp-admin/edit.php | 2,133 ▲30 | 1.99 ▼0.02 | 34.48 ▼5.51 | 32.76 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,566 ▲37 | 23.10 ▼0.02 | 669.30 ▼20.85 | 173.97 ▲114.63 |
Media Library /wp-admin/upload.php | 1,430 ▲27 | 4.19 ▼0.09 | 110.88 ▲11.41 | 77.77 ▲33.36 |
WpDevTool /wp-admin/admin.php?page=wpdevtool_admin | 1,930 | 6.62 | 126.76 | 90.02 |
Crons Table /wp-admin/admin.php?page=wpdevtool_crons | 1,181 | 2.00 | 24.34 | 37.63 |
Permalinks /wp-admin/admin.php?page=wpdevtool_permalinks | 1,132 | 2.00 | 23.14 | 31.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpdevtool_permalinks
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
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
Almost there! Just fix the following items
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant WPDEVTOOL_ABS - assumed 'WPDEVTOOL_ABS' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpdevtool/core/core.php on line 8
- > PHP Warning
require_once(WPDEVTOOL_ABScore/error_handler.php): failed to open stream: No such file or directory in wp-content/plugins/wpdevtool/core/core.php on line 8
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpdevtool/core/error_handler.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpdevtool/core/log_console.php:235
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpdevtool/core/class-wdt_table.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpdevtool/views/permalinks.php:16
- > PHP Fatal error
require_once(): Failed opening required 'WPDEVTOOL_ABScore/error_handler.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpdevtool/core/core.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpdevtool/core/error_handler.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpdevtool/inc/credits.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpdevtool/views/admin.php:16
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 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
7 plugin tags: debug, console, log, development, developer...
wpdevtool/wpdevtool.php Passed 13 tests
The entry point to "WpDevTool" version 0.1.1 is a PHP file that has certain tags in its header comment area
49 characters long description:
A simple tool to develop on WordPress platform...
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,200 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 347 | 460 | 962 |
PO File | 1 | 90 | 113 | 206 |
CSS | 2 | 8 | 10 | 30 |
JavaScript | 1 | 0 | 1 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 14.25 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 78.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 21.05% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/develop_16.png | 0.89KB | 1.08KB | 0.00% |
img/develop_32.png | 2.94KB | 1.96KB | ▼ 33.41% |