Less More
Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.29MB] [CPU: ▲0.08ms] Passed 4 tests
An overview of server-side resources used by Comment Hacks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 44.08 ▲0.18 |
Dashboard /wp-admin | 3.66 ▲0.35 | 51.72 ▲0.52 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 50.20 ▲3.85 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 90.55 ▼2.74 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 38.88 ▲2.34 |
Comment Hacks /wp-admin/options-general.php?page=yoast-comment-hacks | 3.55 | 37.45 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
0.37MB
Filesystem: 153 new files0.00MB
Database: no new tables, 7 new optionsNew WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
yoast_comment_hacks |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Comment Hacks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.35 ▲0.00 | 1.98 ▲0.16 | 48.02 ▲2.33 |
Dashboard /wp-admin | 2,208 ▲28 | 5.64 ▼0.02 | 92.62 ▲0.29 | 41.64 ▲0.29 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.96 ▼0.04 | 35.38 ▼1.54 | 38.05 ▼1.12 |
Add New Post /wp-admin/post-new.php | 6,241 ▲4,715 | 26.29 ▲3.31 | 927.51 ▲311.64 | 55.69 ▲6.97 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.15 ▼0.02 | 96.47 ▼13.20 | 40.99 ▼1.61 |
Comment Hacks /wp-admin/options-general.php?page=yoast-comment-hacks | 1,465 | 2.06 | 27.17 | 33.96 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- yoast_comment_hacks
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 105× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'JoostBlog\\WP\\Comment\\Inc\\Hacks' not found in wp-content/plugins/yoast-comment-hacks/admin/views/config-page.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/yoast-comment-hacks/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/yoast-comment-hacks/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/yoast-comment-hacks/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/yoast-comment-hacks/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/yoast-comment-hacks/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/yoast-comment-hacks/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/yoast-comment-hacks/vendor/composer/installers/src/Composer/Installers/WinterInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/yoast-comment-hacks/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php:11
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/yoast-comment-hacks/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: spam, emails, comments
yoast-comment-hacks/yoast-comment-hacks.php Passed 13 tests
The main PHP script in "Comment Hacks" version 1.9.2 is automatically included on every request by WordPress
95 characters long description:
Make comments management easier by applying the simple hacks Joost has gathered over the years.
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
There were no executable files found in this plugin4,497 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 754 | 1,418 | 3,954 |
JSON | 3 | 0 | 0 | 356 |
YAML | 3 | 31 | 3 | 123 |
Markdown | 1 | 8 | 0 | 33 |
JavaScript | 2 | 7 | 27 | 29 |
CSS | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 3.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 122 | |
▷ Abstract classes | 1 | 0.82% |
▷ Concrete classes | 121 | 99.18% |
▷ Final classes | 0 | 0.00% |
Methods | 201 | |
▷ Static methods | 21 | 10.45% |
▷ Public methods | 139 | 69.15% |
▷ Protected methods | 34 | 16.92% |
▷ Private methods | 28 | 13.93% |
Functions | 8 | |
▷ Named functions | 2 | 25.00% |
▷ Anonymous functions | 6 | 75.00% |
Constants | 8 | |
▷ Global constants | 3 | 37.50% |
▷ Class constants | 5 | 62.50% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected