Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼140.73ms] Passed 4 tests
An overview of server-side resources used by WH Tweaks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 30.19 ▲6.47 |
Dashboard /wp-admin | 3.08 ▲0.03 | 40.61 ▲0.38 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 43.54 ▲4.61 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 79.01 ▼565.39 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 31.22 ▼2.51 |
WH Tweaks /wp-admin/options-general.php?page=wht-options | 3.03 | 29.71 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WH Tweaks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,599 ▲3 | 15.81 ▲0.30 | 2.34 ▼8.17 | 50.70 ▲2.97 |
Dashboard /wp-admin | 2,975 ▲38 | 5.85 ▼0.13 | 136.15 ▼6.79 | 109.82 ▼5.43 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.02 | 66.86 ▼0.69 | 94.47 ▼3.12 |
Add New Post /wp-admin/post-new.php | 1,879 ▲264 | 17.13 ▼4.36 | 353.10 ▲83.74 | 108.27 ▲3.05 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▲0.00 | 135.06 ▼13.47 | 116.44 ▼5.35 |
WH Tweaks /wp-admin/options-general.php?page=wht-options | 2,342 | 4.36 | 94.53 | 122.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wh-tweaks/options-page.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wh-tweaks/wh-tweaks.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 23 tag instead of maximum 10
wh-tweaks/wh-tweaks.php Passed 13 tests
This is the main PHP file of "WH Tweaks" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Common functionality WordPress core should have but maybe shouldn't.
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
No dangerous file extensions were detected1,132 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 108 | 183 | 828 |
JavaScript | 2 | 26 | 60 | 186 |
CSS | 5 | 22 | 2 | 118 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 46 | |
▷ Named functions | 46 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
PNG images were not found in this plugin