Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.57ms] Passed 4 tests
An overview of server-side resources used by WP Comment Policy Checkbox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.93 ▼0.41 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.75 ▼4.14 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 42.99 ▼0.72 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 80.65 ▼13.02 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.86 ▲1.26 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Comment Policy Checkbox
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.14 ▼1.17 | 5.45 ▲3.35 | 45.18 ▼7.32 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼0.20 | 110.80 ▲8.62 | 42.75 ▼1.72 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.05 ▲0.08 | 34.48 ▼0.91 | 34.27 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.70 ▼4.92 | 589.46 ▼102.49 | 50.38 ▼5.03 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▲0.02 | 94.12 ▼11.86 | 40.07 ▼8.69 |
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
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-comment-policy-checkbox/includes/wp-comment-policy-checkbox-admin.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-comment-policy-checkbox/includes/wp-comment-policy-checkbox-data-exporter.php:85
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-comment-policy-checkbox/includes/wp-comment-policy-checkbox-data-eraser.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-comment-policy-checkbox/admin/wp-comment-policy-checkbox-admin.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #3 is required in wp-comment-policy-checkbox/assets to your readme.txt
wp-comment-policy-checkbox/wp-comment-policy-checkbox.php 92% from 13 tests
"WP Comment Policy Checkbox" version 0.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 169 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected612 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 163 | 105 | 404 |
SVG | 1 | 0 | 0 | 127 |
PO File | 2 | 16 | 16 | 81 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 22 | |
▷ Named functions | 22 | 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
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 39.66KB | 18.55KB | ▼ 53.23% |
assets/screenshot-3.png | 5.07KB | 2.39KB | ▼ 52.80% |
assets/screenshot-2.png | 27.61KB | 13.28KB | ▼ 51.91% |
assets/icon-128x128.png | 2.68KB | 2.11KB | ▼ 21.40% |