Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.59ms] Passed 4 tests
An overview of server-side resources used by Wpfox Infobox rotator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.00 | 53.55 ▲10.08 |
Dashboard /wp-admin | 3.35 ▲0.00 | 49.43 ▼10.57 |
Posts /wp-admin/edit.php | 3.40 ▲0.00 | 48.43 ▼5.67 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.00 | 88.04 ▼5.64 |
Media Library /wp-admin/upload.php | 3.27 ▲0.00 | 39.00 ▼0.48 |
Server storage [IO: ▲6.79MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 187 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Wpfox Infobox rotator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.22 ▼0.13 | 1.71 ▼0.07 | 41.85 ▼0.43 |
Dashboard /wp-admin | 2,198 ▲21 | 5.55 ▲0.02 | 82.57 ▼2.72 | 38.64 ▼2.09 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▼0.00 | 34.52 ▼3.74 | 30.94 ▼7.88 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.20 ▲0.06 | 681.04 ▲61.64 | 50.66 ▼3.99 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▲0.03 | 96.71 ▼5.43 | 42.21 ▼7.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpfox-infobox-rotator/classes/view/dash.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #3 in wpfox-infobox-rotator/assets to your readme.txt
- Tags: You are using too many tags: 11 tag instead of maximum 10
wpfox-infobox-rotator/wpfox-infobox-rotator.php 92% from 13 tests
The main PHP script in "Wpfox Infobox rotator" version 1.0.3 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 176 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected103,535 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 99 | 11,084 | 9,216 | 56,818 |
JavaScript | 54 | 3,331 | 1,417 | 43,315 |
SVG | 3 | 0 | 12 | 2,880 |
PHP | 3 | 63 | 20 | 391 |
PO File | 2 | 36 | 0 | 107 |
JSON | 1 | 0 | 0 | 20 |
Markdown | 1 | 3 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
2 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assests/lib/semantic/themes/default/assets/images/flags.png | 27.46KB | 29.21KB | 0.00% |
assests/img/wpfox_logo.png | 77.04KB | 19.68KB | ▼ 74.46% |