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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.64ms] Passed 4 tests
Server-side resources used by Akamai for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.04 | 36.22 ▼3.87 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.33 ▼2.06 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 44.35 ▼2.55 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 80.74 ▼22.08 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.15 ▲3.73 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
akamai-version |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Akamai for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲114 | 13.34 ▼1.03 | 1.82 ▲0.09 | 41.21 ▼5.66 |
Dashboard /wp-admin | 2,233 ▲45 | 4.87 ▼1.03 | 101.26 ▼1.69 | 41.51 ▼4.47 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.04 ▼0.02 | 35.95 ▼7.10 | 35.86 ▼1.67 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.22 ▲5.71 | 591.69 ▼98.98 | 51.01 ▼8.87 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.23 ▲0.04 | 103.67 ▼6.45 | 42.38 ▼5.57 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- akamai-version
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/akamai/vendor/akamai-open/edgegrid-auth/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/akamai/vendor/akamai-open/edgegrid-auth/tests/bootstrap.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'Akamai\\Open\\EdgeGrid\\Authentication\\Exception\\SignerException' not found in wp-content/plugins/akamai/vendor/akamai-open/edgegrid-auth/src/Authentication/Exception/SignerException/InvalidSignDataException.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/akamai/vendor/akamai-open/edgegrid-auth/tests/Authentication/TimestampTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Akamai\\Open\\EdgeGrid\\Authentication\\Exception' not found in wp-content/plugins/akamai/vendor/akamai-open/edgegrid-auth/src/Authentication/Exception/ConfigException.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/akamai/vendor/akamai-open/edgegrid-auth/tests/AuthenticationTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Akamai\\Open\\EdgeGrid\\Authentication\\Exception' not found in wp-content/plugins/akamai/vendor/akamai-open/edgegrid-auth/src/Authentication/Exception/SignerException.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/akamai/admin/partials/akamai-admin-display.php:3
- > PHP Warning
require_once(wp-content/plugins/akamai/vendor/akamai-open/edgegrid-auth/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/akamai/vendor/akamai-open/edgegrid-auth/tests/bootstrap.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/akamai/vendor/akamai-open/edgegrid-auth/tests/Authentication/NonceTest.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: purge, akamai, cache, cdn
akamai/akamai.php Passed 13 tests
The main file in "Akamai for WordPress" v. 0.6.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Akamai for WordPress Plugin. Control Akamai CDN and more.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,447 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 387 | 960 | 1,801 |
JSON | 3 | 0 | 0 | 250 |
YAML | 3 | 7 | 31 | 129 |
Markdown | 2 | 44 | 0 | 113 |
Bourne Shell | 1 | 8 | 1 | 47 |
JavaScript | 2 | 13 | 55 | 47 |
CSS | 2 | 6 | 4 | 40 |
XML | 1 | 1 | 10 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 8.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 7 | 5.79% |
▷ Public methods | 104 | 85.95% |
▷ Protected methods | 14 | 11.57% |
▷ Private methods | 3 | 2.48% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.20MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 11.48KB | 5.77KB | ▼ 49.74% |
assets/icon-128x128.png | 5.60KB | 3.18KB | ▼ 43.16% |
assets/screenshot-1.png | 186.58KB | 57.46KB | ▼ 69.20% |