Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/sewol-count/sewol-count.php+47
Methods with the same name as their class will not be constructors in a future version of PHP; sewol_widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼51.15ms] Passed 4 tests
Analyzing server-side resources used by Sewol Count
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.71 ▼38.11 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.72 ▼37.90 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 6.46 ▼40.86 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 5.56 ▼87.72 |
Media Library /wp-admin/upload.php | 2.09 ▼1.13 | 6.44 ▼31.28 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_sewol_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sewol Count
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.13 | 1.70 ▼0.13 | 46.08 ▲3.26 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.12 | 110.32 ▲1.81 | 41.96 ▼2.76 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.04 | 40.38 ▲0.09 | 35.77 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.87 ▼5.56 | 684.56 ▲10.36 | 60.30 ▲13.83 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▼0.02 | 97.72 ▼1.83 | 41.90 ▼1.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/sewol-count/sewol-count.php+47
Methods with the same name as their class will not be constructors in a future version of PHP; sewol_widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_sewol_widget
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sewol-count/sewol-count.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Screenshot of widget setting), #2 (Screenshot of plugin in action)
sewol-count/sewol-count.php Passed 13 tests
This is the main PHP file of "Sewol Count" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
36 characters long description:
count day after Sewol Ferry Disaster
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
There were no executable files found in this plugin109 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 24 | 81 |
PO File | 1 | 6 | 6 | 28 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshoot-1.png | 4.91KB | 3.51KB | ▼ 28.45% |
screenshoot-2.png | 1.14KB | 1.13KB | ▼ 0.77% |