Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.38ms] Passed 4 tests
This is a short check of server-side resources used by Wareki
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 36.80 ▼4.70 |
Dashboard /wp-admin | 3.38 ▲0.03 | 47.77 ▼17.32 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.96 ▲1.05 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 101.49 ▲2.33 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 34.30 ▼0.55 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Wareki
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.38 ▲0.03 | 1.82 ▼0.20 | 41.95 ▼0.06 |
Dashboard /wp-admin | 2,195 ▲15 | 5.63 ▼0.01 | 90.99 ▲0.15 | 38.92 ▲3.11 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.06 | 40.68 ▲3.68 | 35.58 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 22.98 ▼0.11 | 590.51 ▼78.63 | 48.55 ▼15.56 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.05 | 100.71 ▲0.63 | 41.93 ▼3.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
- 32× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wareki/lib/class-wareki.php:79
- > PHP Warning
Illegal offset type in wp-content/plugins/wareki/lib/class-wareki.php on line 75
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wareki/lib/class-wareki.php on line 75
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wareki/lib/class-wareki.php on line 75
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wareki/lib/class-wareki.php on line 75
- > PHP Warning
Illegal offset type in wp-content/plugins/wareki/lib/class-wareki.php on line 75
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wareki/lib/class-wareki.php on line 75
- > PHP Warning
Illegal offset type in wp-content/plugins/wareki/lib/class-wareki.php on line 75
- > PHP Warning
Illegal offset type in wp-content/plugins/wareki/lib/class-wareki.php on line 75
- > PHP Warning
Illegal offset type in wp-content/plugins/wareki/lib/class-wareki.php on line 75
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: i18n, gengo, date, japanese
wareki/wareki.php Passed 13 tests
The primary PHP file in "Wareki" version 2.02 is used by WordPress to initiate all plugin functionality
97 characters long description:
Add a Japanese calendar including the era in date format, posts, comments, archives and calendar.
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 detected318 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 65 | 162 | 318 |
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.42 |
Average class complexity | 65.00 |
▷ Minimum class complexity | 65.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 5.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 61.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 38.46% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin