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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.21ms] 75% from 4 tests
Server-side resources used by Yes/No Chart
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 2,928.14ms on /wp-admin/admin.php?page=yesno-set)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.01 ▼8.71 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.28 ▼2.14 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.91 ▲0.44 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.27 ▼10.44 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.29 ▲2.79 |
Question Set /wp-admin/admin.php?page=yesno-set | 4.40 | 2,928.14 |
Question /wp-admin/admin.php?page=yesno-question | 3.24 | 30.74 |
Server storage [IO: ▲1.38MB] [DB: ▲0.05MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 29 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_yesno_question |
wp_yesno_set |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
yesno |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Yes/No Chart
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲206 | 13.88 ▼0.50 | 9.08 ▲6.93 | 39.48 ▼4.30 |
Dashboard /wp-admin | 2,233 ▲42 | 4.86 ▼1.04 | 95.91 ▼3.94 | 38.62 ▼1.00 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.06 ▲0.07 | 39.11 ▼2.74 | 34.15 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,564 ▲22 | 18.23 ▲0.30 | 595.29 ▼17.50 | 59.82 ▲7.83 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.15 ▼0.03 | 96.53 ▼5.78 | 44.07 ▲0.22 |
Question Set /wp-admin/admin.php?page=yesno-set | 918 | 2.05 | 25.52 | 32.50 |
Question /wp-admin/admin.php?page=yesno-question | 823 | 2.05 | 24.10 | 26.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yesno/class/class-set.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yesno/class/class-ajax.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yesno/class/class-question.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yesno/class/class-ajax.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: answer, yesno, questionnaire, chart, qa...
yesno/yesno.php Passed 13 tests
Analyzing the main PHP file in "Yes/No Chart" version 1.0.12
72 characters long description:
Yes/No Chart plugin. Yes/Noチャートを作れるプラグインです
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
No dangerous file extensions were detected2,637 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 267 | 382 | 2,125 |
CSS | 2 | 19 | 25 | 236 |
PO File | 1 | 67 | 81 | 151 |
JavaScript | 2 | 14 | 30 | 125 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 26.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 55 | 77.46% |
▷ Public methods | 71 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 1.27MB with 0.93MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-8.png | 72.94KB | 17.78KB | ▼ 75.63% |
screenshot-5.png | 173.45KB | 50.69KB | ▼ 70.77% |
screenshot-3.png | 150.90KB | 43.17KB | ▼ 71.39% |
screenshot-9.png | 75.57KB | 18.01KB | ▼ 76.16% |
screenshot-7.png | 97.78KB | 28.43KB | ▼ 70.93% |