Benchmarks
Plugin footprint 48% 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: ▲1.02MB] [CPU: ▲2.57ms] Passed 4 tests
An overview of server-side resources used by WEDOS Global (CDN Cache & Security)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.51 ▲1.05 | 42.62 ▲1.07 |
Dashboard /wp-admin | 4.34 ▲0.99 | 60.78 ▲2.00 |
Posts /wp-admin/edit.php | 4.39 ▲1.03 | 52.50 ▲2.96 |
Add New Post /wp-admin/post-new.php | 6.92 ▲1.03 | 100.34 ▲4.25 |
Media Library /wp-admin/upload.php | 4.26 ▲1.03 | 42.54 ▲10.77 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 141 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WEDOS Global (CDN Cache & Security): an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲14 | 14.23 ▼0.09 | 1.70 ▼0.17 | 40.15 ▼6.05 |
Dashboard /wp-admin | 2,209 ▲29 | 5.61 ▼0.03 | 87.16 ▼2.99 | 36.02 ▼6.64 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 1.97 ▼0.04 | 38.99 ▼1.40 | 30.06 ▼3.79 |
Add New Post /wp-admin/post-new.php | 1,521 ▼8 | 23.33 ▲0.17 | 596.98 ▲8.81 | 66.48 ▲14.37 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.17 ▼0.06 | 96.89 ▼2.63 | 37.58 ▼2.69 |
Uninstaller [IO: ▲0.98MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the followingThis plugin does not fully uninstall, leaving 7 options in the database
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wgpwpp/uninstall.php+39
Constant WGPWPP_VERSION already defined
- The plugin did not uninstall successfully, leaving 141 files (0.98MB) in the plugin directory
- (new file) admin/class-wgpwpp-admin-layout.php
- (new file) README.md
- (new file) admin/css/wgpwpp-admin.css
- (new file) admin/class-wgpwpp-admin.php
- (new file) README.txt
- (new file) admin/class-wgpwpp-notices.php
- (new file) admin/class-wgpwpp-notice.php
- (new file) admin/class-wgpwpp-verification.php
- (new file) admin/class-wgpwpp-authorization.php
- (new file) LICENSE.txt
- ...
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wgpwpp/public/partials/wgpwpp-public-display.php
- 34× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Trait 'Latte\\Strict' not found in wp-content/plugins/wgpwpp/vendor/latte/latte/src/Latte/Runtime/Template.php on line 20
- > PHP Fatal error
Trait 'Latte\\Strict' not found in wp-content/plugins/wgpwpp/vendor/latte/latte/src/Latte/Runtime/SnippetDriver.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'IPLib\\Range\\AbstractRange' not found in wp-content/plugins/wgpwpp/vendor/mlocati/ip-lib/src/Range/Subnet.php:17
- > PHP Fatal error
Trait 'Latte\\Strict' not found in wp-content/plugins/wgpwpp/vendor/latte/latte/src/Latte/Compiler/HtmlNode.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'Latte\\Macros\\MacroSet' not found in wp-content/plugins/wgpwpp/vendor/latte/latte/src/Latte/Macros/BlockMacros.php:26
- > PHP Fatal error
Uncaught Error: Class 'Latte\\TokenIterator' not found in wp-content/plugins/wgpwpp/vendor/latte/latte/src/Latte/Compiler/MacroTokens.php:16
- > PHP Fatal error
Trait 'Latte\\Strict' not found in wp-content/plugins/wgpwpp/vendor/latte/latte/src/Latte/Compiler/Parser.php on line 16
- > PHP Fatal error
Uncaught Error: Interface 'Latte\\Loader' not found in wp-content/plugins/wgpwpp/vendor/latte/latte/src/Latte/Loaders/StringLoader.php:18
- > PHP Fatal error
Uncaught Error: Class 'IPLib\\Range\\AbstractRange' not found in wp-content/plugins/wgpwpp/vendor/mlocati/ip-lib/src/Range/Single.php:17
- > PHP Fatal error
Trait 'Latte\\Strict' not found in wp-content/plugins/wgpwpp/vendor/latte/latte/src/Latte/Compiler/MacroNode.php on line 16
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Donate link: Invalid URI ("")
wgpwpp/wgpwpp.php 92% from 13 tests
The entry point to "WEDOS Global (CDN Cache & Security)" version 1.0.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin15,709 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 95 | 3,273 | 5,780 | 11,459 |
PO File | 3 | 536 | 779 | 1,875 |
CSS | 5 | 187 | 124 | 1,444 |
Markdown | 4 | 266 | 0 | 555 |
JSON | 4 | 0 | 0 | 301 |
JavaScript | 5 | 17 | 60 | 68 |
XML | 1 | 1 | 1 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 23.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 225.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 11 | |
Traits | 1 | |
Classes | 80 | |
▷ Abstract classes | 2 | 2.50% |
▷ Concrete classes | 78 | 97.50% |
▷ Final classes | 7 | 8.97% |
Methods | 828 | |
▷ Static methods | 145 | 17.51% |
▷ Public methods | 684 | 82.61% |
▷ Protected methods | 24 | 2.90% |
▷ Private methods | 120 | 14.49% |
Functions | 68 | |
▷ Named functions | 1 | 1.47% |
▷ Anonymous functions | 67 | 98.53% |
Constants | 109 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 109 | 100.00% |
▷ Public constants | 106 | 97.25% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/wp-wgp/src/img/hourglass.png | 15.90KB | 7.19KB | ▼ 54.79% |
admin/partials/wp-wgp/src/img/logo.png | 19.95KB | 9.51KB | ▼ 52.30% |
admin/partials/wp-wgp/src/img/cosmonaut2.png | 19.95KB | 9.51KB | ▼ 52.30% |
admin/partials/wp-wgp/src/img/rubber-ring.png | 16.37KB | 7.99KB | ▼ 51.20% |
admin/partials/wp-wgp/src/img/ssl-certificate.png | 45.44KB | 16.65KB | ▼ 63.37% |