Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▲945.65ms] 50% from 4 tests
Analyzing server-side resources used by wp-sacloud-webaccel
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 1,437.05ms on /wp-admin/options-general.php?page=wp-sacloud-webaccel/wp-sacloud-webaccel.php)
- Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 945.65ms on /wp-admin/options-general.php?page=wp-sacloud-webaccel/wp-sacloud-webaccel.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 36.43 ▼3.85 |
Dashboard /wp-admin | 3.58 ▲0.28 | 1,312.59 ▲1,258.49 |
Posts /wp-admin/edit.php | 3.64 ▲0.27 | 1,420.77 ▲1,372.92 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 1,333.63 ▲1,233.45 |
Media Library /wp-admin/upload.php | 3.45 ▲0.21 | 1,330.61 ▲1,294.51 |
WebAccelerator /wp-admin/options-general.php?page=wp-sacloud-webaccel/wp-sacloud-webaccel.php | 3.45 | 1,437.05 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for wp-sacloud-webaccel
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.36 ▲0.01 | 1.76 ▲0.29 | 39.04 ▼0.87 |
Dashboard /wp-admin | 2,198 ▲24 | 5.51 ▼0.07 | 81.86 ▼2.84 | 38.70 ▲4.55 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.96 ▼0.08 | 33.81 ▼2.44 | 32.61 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.07 ▲0.02 | 596.57 ▼34.65 | 57.81 ▲4.77 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.14 ▼0.04 | 90.28 ▼14.47 | 41.85 ▼2.88 |
WebAccelerator /wp-admin/options-general.php?page=wp-sacloud-webaccel/wp-sacloud-webaccel.php | 1,011 | 2.02 | 22.10 | 31.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-sacloud-webaccel/wp-sacloud-webaccel.php:15
- > PHP Notice
Undefined variable: messages in wp-content/plugins/wp-sacloud-webaccel/tpl/setting.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-sacloud-webaccel/tpl/setting.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Donate link: Invalid URI found ("")
wp-sacloud-webaccel/wp-sacloud-webaccel.php Passed 13 tests
The entry point to "wp-sacloud-webaccel" version 0.0.13 is a PHP file that has certain tags in its header comment area
109 characters long description:
WordPressとさくらのクラウド ウェブアクセラレータを連携させるためのプラグイン
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,539 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 333 | 145 | 1,371 |
PO File | 1 | 90 | 164 | 134 |
JavaScript | 1 | 4 | 1 | 29 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 6 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 50.00% |
Functions | 60 | |
▷ Named functions | 59 | 98.33% |
▷ Anonymous functions | 1 | 1.67% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 160.13KB | 54.84KB | ▼ 65.75% |