Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.49ms] Passed 4 tests
This is a short check of server-side resources used by Fastly
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 45.20 ▲8.35 |
Dashboard /wp-admin | 3.40 ▲0.05 | 49.77 ▼7.97 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.54 ▼0.89 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 81.48 ▼11.78 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.97 ▲2.70 |
Edge Modules /wp-admin/admin.php?page=fastly-edge-modules | 3.32 | 35.01 |
Webhooks /wp-admin/admin.php?page=fastly-webhooks | 3.28 | 27.53 |
General /wp-admin/admin.php?page=fastly | 3.28 | 31.07 |
Image Optimization /wp-admin/admin.php?page=fastly-io | 3.28 | 27.98 |
Advanced /wp-admin/admin.php?page=fastly-advanced | 3.28 | 32.09 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fastly-settings-general |
can_compress_scripts |
fastly-settings-advanced |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
fastly-schema-version |
Browser metrics Passed 4 tests
A check of browser resources used by Fastly
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.22 ▼1.18 | 1.78 ▲0.01 | 43.60 ▲0.87 |
Dashboard /wp-admin | 2,245 ▲56 | 5.85 ▼0.07 | 98.52 ▼4.33 | 37.98 ▼5.52 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.02 ▲0.01 | 39.31 ▲1.10 | 35.31 ▲3.13 |
Add New Post /wp-admin/post-new.php | 1,550 ▲36 | 23.28 ▲5.61 | 674.93 ▼6.00 | 53.84 ▼13.93 |
Media Library /wp-admin/upload.php | 1,421 ▲30 | 4.22 ▲0.01 | 95.55 ▼3.46 | 41.43 ▼4.02 |
Edge Modules /wp-admin/admin.php?page=fastly-edge-modules | 707 | 1.71 | 10.79 | 20.26 |
Webhooks /wp-admin/admin.php?page=fastly-webhooks | 903 | 1.85 | 25.38 | 51.18 |
General /wp-admin/admin.php?page=fastly | 951 | 2.09 | 23.60 | 33.25 |
Image Optimization /wp-admin/admin.php?page=fastly-io | 808 | 2.03 | 23.33 | 26.46 |
Advanced /wp-admin/admin.php?page=fastly-advanced | 1,481 | 1.88 | 26.13 | 39.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- fastly-settings-general
- widget_recent-posts
- theysaidso_admin_options
- fastly-settings-advanced
- fastly-schema-version
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/fastly/src/wp-cli.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fastly/src/wp-purges.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fastly/src/settings-page.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/fastly/purgely.php:164
- > PHP Fatal error
Uncaught Error: Class 'Purgely_Header' not found in wp-content/plugins/fastly/src/classes/header-surrogate-control.php:9
- > PHP Fatal error
Uncaught Error: Class 'Purgely_Header' not found in wp-content/plugins/fastly/src/classes/header-cache-control.php:9
- > PHP Fatal error
Uncaught Error: Class 'Purgely_Header' not found in wp-content/plugins/fastly/src/classes/header-surrogate-keys.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
10 plugin tags: dynamic, spike, fastly, performance, ddos...
fastly/purgely.php 92% from 13 tests
"Fastly" version 1.2.24's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("fastly.php" instead of "purgely.php")
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
Good job! No executable or dangerous file extensions detected8,926 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 741 | 1,524 | 4,332 |
JavaScript | 3 | 820 | 439 | 3,675 |
JSON | 18 | 0 | 0 | 898 |
Markdown | 1 | 2 | 0 | 16 |
Bourne Shell | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 27.62 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 217 | |
▷ Static methods | 12 | 5.53% |
▷ Public methods | 192 | 88.48% |
▷ Protected methods | 18 | 8.29% |
▷ Private methods | 7 | 3.23% |
Functions | 20 | |
▷ Named functions | 18 | 90.00% |
▷ Anonymous functions | 2 | 10.00% |
Constants | 46 | |
▷ Global constants | 31 | 67.39% |
▷ Class constants | 15 | 32.61% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.36MB with 0.23MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 82.12KB | 29.44KB | ▼ 64.15% |
assets/screenshot-1.png | 110.16KB | 38.32KB | ▼ 65.22% |
assets/screenshot-2.png | 177.01KB | 66.47KB | ▼ 62.45% |