Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.29ms] Passed 4 tests
Analyzing server-side resources used by SB Comment
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.19 ▼0.28 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.42 ▼2.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.26 ▼4.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.99 ▼14.02 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.34 ▲0.95 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for SB Comment
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.33 ▲0.06 | 1.91 ▲0.20 | 48.38 ▲4.01 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▲0.01 | 85.58 ▼5.99 | 37.18 ▼7.36 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▲0.02 | 34.91 ▼1.86 | 32.27 ▼3.37 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.39 ▲0.18 | 681.89 ▼29.34 | 59.46 ▲10.43 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.00 | 102.99 ▲0.41 | 43.65 ▼1.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sb-comment/inc/sb-plugin-ajax.php:12
- > PHP Fatal error
require(): Failed opening required 'SB_COMMENT_INC_PATH/sb-plugin-install.php' (include_path='.:/usr/share/php') in wp-content/plugins/sb-comment/inc/sb-plugin-load.php on line 2
- > PHP Warning
require(SB_COMMENT_INC_PATH/sb-plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/sb-comment/inc/sb-plugin-load.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/sb-comment/sb-comment.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/sb-comment/inc/sb-comment-template.php:2
- > PHP Warning
Use of undefined constant SB_COMMENT_INC_PATH - assumed 'SB_COMMENT_INC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sb-comment/inc/sb-plugin-load.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sb-comment/inc/sb-plugin-admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sb-comment/inc/sb-plugin-hook.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sb-comment/inc/sb-plugin-install.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The default comment form.), #2 (The default comment list.)
sb-comment/sb-comment.php Passed 13 tests
The primary PHP file in "SB Comment" version 1.1.2 is used by WordPress to initiate all plugin functionality
131 characters long description:
SB Comment is a plugin that allows to check spam comment on your WordPress site, improve the default comment template on your blog.
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
Good job! No executable or dangerous file extensions detected1,299 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 81 | 11 | 741 |
CSS | 2 | 35 | 0 | 363 |
PO File | 1 | 49 | 49 | 130 |
JavaScript | 2 | 1 | 0 | 65 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.20 |
▷ 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 | 35 | |
▷ Static methods | 35 | 100.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
9 PNG files occupy 0.18MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sb-default-avatar-256.png | 39.57KB | 28.24KB | ▼ 28.64% |
screenshot-1.png | 14.32KB | 7.87KB | ▼ 45.07% |
images/sb-default-avatar-128.png | 12.14KB | 8.32KB | ▼ 31.48% |
images/sb-default-avatar-100.png | 8.66KB | 5.97KB | ▼ 31.10% |
screenshot-2.png | 52.36KB | 22.61KB | ▼ 56.81% |