Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/phpsword-disable-comments/index.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; PhpswDC has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼56.47ms] Passed 4 tests
A check of server-side resources used by PhpSword Disable Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 5.67 ▼39.08 |
Dashboard /wp-admin | 2.18 ▼1.12 | 5.71 ▼47.96 |
Posts /wp-admin/edit.php | 2.18 ▼1.17 | 5.20 ▼41.76 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.70 | 6.20 ▼97.09 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 5.15 ▼28.76 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
PhpswDCOptions |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
PhpSword Disable Comments: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 14.47 ▲0.09 | 1.78 ▼0.08 | 44.80 ▲0.71 |
Dashboard /wp-admin | 2,222 ▲34 | 4.84 ▼0.05 | 112.31 ▼3.32 | 41.24 ▼6.08 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.04 ▼0.00 | 35.24 ▼1.86 | 31.95 ▼4.64 |
Add New Post /wp-admin/post-new.php | 1,548 ▲29 | 23.36 ▼0.03 | 655.58 ▲6.47 | 52.45 ▲2.57 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.18 ▼0.02 | 98.64 ▼0.84 | 44.20 ▲0.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/phpsword-disable-comments/index.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; PhpswDC has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- PhpswDCOptions
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/phpsword-disable-comments/index.php:353
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: disable comments, turn off comment, phpsword, comments, wordpress...
phpsword-disable-comments/index.php 92% from 13 tests
The entry point to "PhpSword Disable Comments" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("phpsword-disable-comments.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected287 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 38 | 287 |
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.46 |
Average class complexity | 73.00 |
▷ Minimum class complexity | 73.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 4.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/phpswdc.png | 0.84KB | 0.90KB | 0.00% |