Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.03ms] Passed 4 tests
Analyzing server-side resources used by No Page Comment
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.65 ▼4.79 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.83 ▼0.06 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 49.26 ▼1.21 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 104.71 ▲1.94 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.63 ▲2.64 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
sta_npc_options |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for No Page Comment
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 13.63 ▼0.74 | 1.73 ▼0.26 | 38.99 ▼3.97 |
Dashboard /wp-admin | 2,225 ▲18 | 5.79 ▲0.70 | 99.45 ▼10.15 | 40.33 ▲1.32 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.17 ▲0.18 | 39.85 ▼2.87 | 35.31 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,557 ▲10 | 18.46 ▼4.91 | 615.87 ▲0.28 | 49.43 ▼5.50 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.20 ▼0.05 | 102.17 ▼0.58 | 46.06 ▲1.70 |
No Page Comment /wp-admin/no-page-comment.php | 26 | 0.44 | 0.12 | 18.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- sta_npc_options
- can_compress_scripts
- db_upgraded
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)
Good news, no errors were detected
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 fix the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/no-page-comment/uninstall.php
- > /wp-content/plugins/no-page-comment/no-page-comment-settings.php
- > /wp-content/plugins/no-page-comment/no-page-comment.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/no-page-comment.php
- > Network (severe)
wp-admin/no-page-comment.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Tags: You are using too many tags: 12 tag instead of maximum 10
no-page-comment/no-page-comment.php Passed 13 tests
The primary PHP file in "No Page Comment" version 1.2 is used by WordPress to initiate all plugin functionality
115 characters long description:
An admin interface to control the default comment and trackback settings on new posts, pages and custom post types.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected640 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 108 | 65 | 456 |
PO File | 1 | 28 | 30 | 77 |
CSS | 1 | 4 | 0 | 69 |
JavaScript | 1 | 0 | 1 | 38 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 47.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin