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
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼5.81ms] Passed 4 tests
Analyzing server-side resources used by WP-Yomigana
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 35.28 ▲0.34 |
Dashboard /wp-admin | 3.47 ▲0.17 | 45.38 ▼2.37 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 47.18 ▼1.19 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 81.40 ▼17.42 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 33.94 ▼2.25 |
Ruby Setting /wp-admin/options-general.php?page=ruby-options | 3.37 | 30.99 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 88 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP-Yomigana
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.19 ▼1.19 | 1.70 ▼0.01 | 42.99 ▲2.11 |
Dashboard /wp-admin | 2,209 ▲18 | 5.82 ▲0.90 | 103.48 ▼4.96 | 39.28 ▼4.65 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.04 ▲0.03 | 35.97 ▼3.28 | 32.61 ▲0.43 |
Add New Post /wp-admin/post-new.php | 6,214 ▲4,700 | 19.37 ▲1.97 | 937.24 ▲265.93 | 38.42 ▼12.85 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.19 ▼0.02 | 94.72 ▼9.73 | 44.10 ▼1.26 |
Ruby Setting /wp-admin/options-general.php?page=ruby-options | 1,134 | 2.05 | 24.18 | 138.44 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
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 take a closer look at the following
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Hametuha\\Yomigana\\Pattern\\Singleton' not found in wp-content/plugins/wp-yomigana/src/Hametuha/Yomigana/Pattern/Application.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-yomigana/templates/setting.php:6
- > PHP Fatal error
Uncaught Error: Class 'Hametuha\\Yomigana\\Pattern\\Application' not found in wp-content/plugins/wp-yomigana/src/Hametuha/Yomigana/Admin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-yomigana/templates/ruby.php:6
- > PHP Fatal error
Uncaught Error: Class 'Hametuha\\Yomigana\\Pattern\\Application' not found in wp-content/plugins/wp-yomigana/src/Hametuha/Yomigana/Gutenberg.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-yomigana/templates/q.php:5
- > PHP Fatal error
Uncaught Error: Class 'Hametuha\\Yomigana\\Pattern\\Application' not found in wp-content/plugins/wp-yomigana/src/Hametuha/Yomigana/Bootstrap.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
10 plugin tags: ruby, dl, tinymce, small, cite...
wp-yomigana/wp-yomigana.php Passed 13 tests
The main PHP script in "WP-Yomigana" version 2.1.0 is automatically included on every request by WordPress
40 characters long description:
You can enter ruby tag in visual editor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected14,737 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 13,128 |
PHP | 17 | 149 | 401 | 772 |
JavaScript | 9 | 39 | 71 | 355 |
JSX | 8 | 65 | 8 | 242 |
PO File | 1 | 39 | 43 | 94 |
Markdown | 1 | 42 | 0 | 73 |
Sass | 3 | 17 | 0 | 68 |
CSS | 5 | 4 | 8 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 13.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 2 | 25.00% |
▷ Concrete classes | 6 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 4 | 7.84% |
▷ Public methods | 40 | 78.43% |
▷ Protected methods | 8 | 15.69% |
▷ Private methods | 3 | 5.88% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
21 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/dist/q-2.png | 0.48KB | 0.46KB | ▼ 4.85% |
assets/img/dist/cite-2.png | 0.43KB | 0.35KB | ▼ 19.37% |
assets/images/ui-icons_0074a2_256x240.png | 4.20KB | 4.17KB | ▼ 0.70% |
assets/img/src/small-2.png | 1.62KB | 0.47KB | ▼ 71.08% |
assets/img/dist/ruby.png | 0.32KB | 0.54KB | 0.00% |