Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.57ms] Passed 4 tests
A check of server-side resources used by WTools
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.64 ▼7.18 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.35 ▼12.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.83 ▼4.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.96 ▼10.72 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.74 ▼0.20 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WTools
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.23 ▼0.34 | 1.93 ▲0.22 | 40.88 ▲2.43 |
Dashboard /wp-admin | 2,195 ▲27 | 5.62 ▲0.10 | 90.54 ▼13.02 | 37.88 ▼9.96 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▼0.09 | 39.85 ▲1.77 | 35.01 ▲0.86 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.11 ▼0.09 | 680.91 ▲32.65 | 61.91 ▲10.01 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▲0.06 | 95.92 ▼15.86 | 46.60 ▲3.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wtools/wtools.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
4 plugin tags: form, development, model, router
wtools/wtools.php Passed 13 tests
This is the main PHP file of "WTools" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
WTools brings various functions and classes to make developing other plugins faster.
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 plugin775 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 100 | 364 | 775 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 8.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 2 | 40.00% |
▷ Concrete classes | 3 | 60.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 14 | 36.84% |
▷ Public methods | 35 | 92.11% |
▷ Protected methods | 2 | 5.26% |
▷ Private methods | 1 | 2.63% |
Functions | 35 | |
▷ Named functions | 34 | 97.14% |
▷ Anonymous functions | 1 | 2.86% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected