Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.35MB] [CPU: ▼306.98ms] Passed 4 tests
Server-side resources used by 5centsCDN - WordPress CDN Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▼0.06 | 910.74 ▲858.53 |
Dashboard /wp-admin | 3.28 ▼0.13 | 23.08 ▼10.09 |
Posts /wp-admin/edit.php | 3.34 ▼0.30 | 28.71 ▼8.25 |
Add New Post /wp-admin/post-new.php | 6.07 ▼0.90 | 78.31 ▼1,202.73 |
Media Library /wp-admin/upload.php | 3.29 ▼0.02 | 23.43 ▼6.86 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 133 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for 5centsCDN - WordPress CDN Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,893 ▲139 | 16.32 ▲0.75 | 6.37 ▲0.19 | 2.72 ▲0.12 |
Dashboard /wp-admin | 2,965 ▲104 | 7.18 ▲1.00 | 127.89 ▼15.00 | 172.97 ▲4.71 |
Posts /wp-admin/edit.php | 2,765 ▲77 | 3.79 ▲0.56 | 83.86 ▲16.00 | 158.62 ▲15.55 |
Add New Post /wp-admin/post-new.php | 1,818 ▲66 | 20.40 ▼0.62 | 448.14 ▼0.10 | 243.15 ▲84.34 |
Media Library /wp-admin/upload.php | 1,769 ▲71 | 6.28 ▲0.76 | 137.83 ▼0.50 | 189.03 ▲2.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
- 43× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/psr7/src/AppendStream.php:11
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:15
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/promises/src/EachPromise.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/5centscdn/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/promises/src/Coroutine.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/psr7/src/LimitStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/5centscdn/vendor/guzzlehttp/psr7/src/Stream.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: bandwidth, cdn, content delivery network, performance
5centscdn/5centscdn.php 92% from 13 tests
"5centsCDN - WordPress CDN Plugin" version 22.3.09's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 513 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected14,185 lines of code in 122 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 97 | 1,889 | 4,955 | 9,160 |
Markdown | 10 | 1,018 | 0 | 3,233 |
JavaScript | 1 | 286 | 27 | 778 |
JSON | 8 | 0 | 0 | 491 |
CSS | 1 | 70 | 7 | 479 |
SVG | 3 | 0 | 0 | 25 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 68 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 68 | 100.00% |
▷ Final classes | 9 | 13.24% |
Methods | 662 | |
▷ Static methods | 76 | 11.48% |
▷ Public methods | 541 | 81.72% |
▷ Protected methods | 6 | 0.91% |
▷ Private methods | 115 | 17.37% |
Functions | 161 | |
▷ Named functions | 74 | 45.96% |
▷ Anonymous functions | 87 | 54.04% |
Constants | 62 | |
▷ Global constants | 7 | 11.29% |
▷ Class constants | 55 | 88.71% |
▷ Public constants | 55 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/fivecent_logo.png | 3.60KB | 2.27KB | ▼ 36.76% |
inc/menu-icon.png | 0.97KB | 0.76KB | ▼ 21.23% |