Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.25MB] [CPU: ▼49.99ms] Passed 4 tests
Server-side resources used by WPtimize
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.73 | 12.84 ▼27.29 |
Dashboard /wp-admin | 2.78 ▼0.57 | 13.77 ▼49.10 |
Posts /wp-admin/edit.php | 2.78 ▼0.58 | 13.89 ▼32.16 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.11 | 13.03 ▼91.41 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 15.54 ▼19.58 |
WPtimize /wp-admin/options-general.php?page=wptimize | 2.78 | 18.80 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WPtimize
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.57 ▼0.78 | 1.70 ▼0.23 | 38.98 ▼4.93 |
Dashboard /wp-admin | 2,212 ▲24 | 4.84 ▼0.18 | 110.25 ▼8.20 | 43.35 ▼2.01 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.05 | 35.93 ▼1.17 | 29.86 ▼2.09 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 22.97 ▲5.47 | 668.89 ▲1.50 | 69.09 ▲20.59 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.20 ▼0.01 | 98.53 ▼14.18 | 41.22 ▼7.49 |
WPtimize /wp-admin/options-general.php?page=wptimize | 1,155 | 2.04 | 29.08 | 29.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wptimize/public/class-wptimize-public.php+114
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% 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)
These errors were triggered by the plugin
- 36 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wptimize
- > Notice in wp-content/plugins/wptimize/admin/partials/wptimize-admin-display.php+58
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wptimize
- > Notice in wp-content/plugins/wptimize/admin/partials/wptimize-admin-display.php+228
A non well formed numeric value encountered
SRP 0% 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wptimize/public/partials/wptimize-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wptimize/admin/partials/wptimize-admin-display.php:20
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: cleanup, clean, header, head, optimization
wptimize/wptimize.php Passed 13 tests
The primary PHP file in "WPtimize" version 1.1.1 is used by WordPress to initiate all plugin functionality
46 characters long description:
Optimization and cleanup plugin for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected642 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 195 | 599 | 593 |
JavaScript | 2 | 10 | 31 | 43 |
CSS | 2 | 2 | 9 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 9.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.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 | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG images were not found in this plugin