Benchmarks
Plugin footprint 82% 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.03MB] [CPU: ▼4.38ms] Passed 4 tests
Server-side resources used by WordPress Online Comments Plugin – CMMNTZ
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.44 ▼9.23 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.92 ▼4.32 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 52.80 ▲1.93 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.18 ▼5.91 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.15 ▲3.09 |
All Comments /wp-admin/edit-comments.php | 3.32 | 43.46 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
These are issues you should consider
- You have illegally modified 3 files (0.00KB) outside of "wp-content/plugins/cmmntz/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/cmmntz/assets/banner-772\303\227250.png"
- (new file) "wp-content/plugins/cmmntz/assets/banner-1544\303\227500.png"
- (new file) "wp-content/plugins/cmmntz/assets/icon-128\303\227128.png"
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Online Comments Plugin – CMMNTZ
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,759 ▼2 | 14.27 ▲0.33 | 1.54 ▼0.14 | 43.51 ▼0.99 |
Dashboard /wp-admin | 2,176 ▼1 | 5.61 ▼0.02 | 90.25 ▼3.31 | 39.36 ▲1.14 |
Posts /wp-admin/edit.php | 2,081 ▼19 | 2.03 ▲0.05 | 39.91 ▲4.83 | 35.29 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,514 ▼12 | 22.99 ▲0.11 | 695.84 ▲55.91 | 54.79 ▼12.50 |
Media Library /wp-admin/upload.php | 1,384 ▼19 | 4.14 ▲0.00 | 96.73 ▼22.19 | 45.55 ▲2.22 |
All Comments /wp-admin/edit-comments.php | 1,781 | 2.26 | 34.99 | 35.99 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/cmmntz/cmmntz.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cmmntz/views/cmmntz-template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: You are using too many tags: 40 tag instead of maximum 10
cmmntz/cmmntz.php 85% from 13 tests
"WordPress Online Comments Plugin – CMMNTZ" version 1.04's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin115 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 28 | 28 | 115 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.33 |
▷ 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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 3.90MB with 2.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256-256.png | 24.99KB | 10.39KB | ▼ 58.41% |
assets/icon-128×128.png | 11.34KB | 4.71KB | ▼ 58.49% |
assets/banner-772×250.png | 1,199.27KB | 415.93KB | ▼ 65.32% |
assets/screenshot_1.png | 52.01KB | 14.07KB | ▼ 72.94% |
assets/banner-1544×500.png | 2,710.49KB | 1,269.65KB | ▼ 53.16% |