Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.39ms] Passed 4 tests
This is a short check of server-side resources used by Comment Mention
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.14 | 43.14 ▲1.96 |
Dashboard /wp-admin | 3.44 ▲0.09 | 48.65 ▼12.01 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 45.81 ▼2.41 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 83.62 ▼1.11 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 40.50 ▲7.90 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Comment Mention
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.21 ▼1.58 | 1.78 ▼0.15 | 40.75 ▼3.46 |
Dashboard /wp-admin | 2,238 ▲52 | 5.87 ▲0.96 | 108.95 ▼1.64 | 42.57 ▼0.59 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.01 ▲0.01 | 36.54 ▲1.42 | 32.09 ▼1.73 |
Add New Post /wp-admin/post-new.php | 1,561 ▲28 | 23.25 ▲0.08 | 690.20 ▼35.13 | 52.67 ▼10.38 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.23 ▼0.04 | 99.89 ▼1.89 | 42.96 ▼2.37 |
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 were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
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 | 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/comment-mention/comment-mention.php:30
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or install the plugin through the WordPress plugins screen directly.), #2 (Activate the plugin through the 'Plugins' screen in WordPress), #3 (Use the Comment Mention menu to configure the plugin)
comment-mention/comment-mention.php Passed 13 tests
The primary PHP file in "Comment Mention" version 1.7.2 is used by WordPress to initiate all plugin functionality
68 characters long description:
Mention user in comments. Mentioned user will get email notification
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin862 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 257 | 326 | 705 |
Markdown | 1 | 46 | 0 | 93 |
PO File | 1 | 18 | 21 | 59 |
JavaScript | 3 | 0 | 0 | 3 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 25.67 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 3 | 13.64% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 68.18KB | 20.75KB | ▼ 69.56% |
screenshot-2.png | 97.65KB | 27.95KB | ▼ 71.38% |