Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼161.03ms] Passed 4 tests
This is a short check of server-side resources used by Comments Disable - AccessPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 25.07 ▼10.51 |
Dashboard /wp-admin | 3.10 ▲0.03 | 40.42 ▼1.02 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 35.06 ▼0.87 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 71.82 ▼631.73 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 26.15 ▲1.70 |
Comments Disable /wp-admin/options-general.php?page=comments-disable-ap | 3.02 | 23.85 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 1 new option
New WordPress options |
---|
cdap_settings |
Browser metrics Passed 4 tests
Comments Disable - AccessPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,671 ▲69 | 15.91 ▲0.34 | 5.59 ▼1.67 | 74.85 ▼7.37 |
Dashboard /wp-admin | 2,935 ▲39 | 6.09 ▼0.11 | 121.18 ▼11.99 | 172.40 ▼5.20 |
Posts /wp-admin/edit.php | 2,745 ▲5 | 3.23 ▲0.00 | 64.30 ▲0.50 | 139.55 ▼1.26 |
Add New Post /wp-admin/post-new.php | 3,746 ▲3 | 19.05 ▲0.14 | 424.65 ▼0.93 | 164.25 ▲5.43 |
Media Library /wp-admin/upload.php | 1,754 ▲5 | 5.53 ▲0.03 | 142.35 ▼0.12 | 187.80 ▲1.79 |
Comments Disable /wp-admin/options-general.php?page=comments-disable-ap | 1,521 | 8.90 | 181.16 | 132.32 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- cdap_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/comments-disable-accesspress/comments-disable-accesspress.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/comments-disable-accesspress/inc/plugin-settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-disable-accesspress/inc/head.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-disable-accesspress/inc/about.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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 your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
comments-disable-accesspress/comments-disable-accesspress.php 92% from 13 tests
The entry point to "Comments Disable - AccessPress" version 1.0.8 is a PHP file that has certain tags in its header comment area
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
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
No dangerous file extensions were detected473 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 44 | 3 | 233 |
PHP | 5 | 36 | 62 | 218 |
JavaScript | 1 | 3 | 1 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/googleplus.png | 1.91KB | 0.99KB | ▼ 48.06% |
images/flicker.png | 1.45KB | 0.57KB | ▼ 60.47% |
images/theme.png | 52.01KB | 17.38KB | ▼ 66.59% |
images/customize.png | 24.05KB | 8.41KB | ▼ 65.05% |
images/plugin.png | 12.50KB | 5.31KB | ▼ 57.50% |