Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.15ms] Passed 4 tests
A check of server-side resources used by Comment Signature
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.77 ▼6.83 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.05 ▼5.09 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 44.91 ▼4.23 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 83.65 ▼12.44 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 35.73 ▲2.82 |
Comment Signature /wp-admin/options-general.php?page=comment-signature/comment-signature.php | 3.21 | 30.26 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Comment Signature
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.70 ▼0.85 | 1.81 ▼0.28 | 46.16 ▼0.55 |
Dashboard /wp-admin | 2,212 ▲24 | 4.86 ▼0.04 | 110.98 ▼2.82 | 38.16 ▼12.67 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 2.00 ▼0.01 | 34.32 ▼1.91 | 33.85 ▼2.63 |
Add New Post /wp-admin/post-new.php | 1,535 ▼9 | 23.33 ▲4.81 | 621.20 ▼27.94 | 53.88 ▼13.57 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.20 ▼0.02 | 95.76 ▼5.49 | 40.58 ▼2.70 |
Comment Signature /wp-admin/options-general.php?page=comment-signature/comment-signature.php | 915 | 1.74 | 25.57 | 27.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=comment-signature/comment-signature.php
- > Notice in wp-content/plugins/comment-signature/comment-signature.php+127
Trying to access array offset on value of type bool
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-signature/comment-signature.php:13
- > 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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Option screen on Profile.), #2 (Output screen with Signature added.), #3 (Adding Color and Font size)
comment-signature/comment-signature.php Passed 13 tests
The main PHP script in "Comment Signature" version 2.2 is automatically included on every request by WordPress
96 characters long description:
Comment Signature provides easy way to add user's signature who already registered on that site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin956 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 138 | 37 | 822 |
PHP | 1 | 33 | 13 | 134 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 38.03KB | 13.88KB | ▼ 63.51% |
js/hv.png | 2.80KB | 7.32KB | 0.00% |
js/hs.png | 2.62KB | 7.54KB | 0.00% |
screenshot-3.png | 46.51KB | 20.30KB | ▼ 56.35% |
screenshot-2.png | 28.12KB | 10.53KB | ▼ 62.54% |