Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.57ms] Passed 4 tests
An overview of server-side resources used by Better Page Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.88 ▼6.93 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.45 ▼3.28 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.17 ▲0.18 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.63 ▼16.24 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.06 ▲2.02 |
SwiftNinjaPro Settings /wp-admin/admin.php?page=swiftninjapro-settings | 3.22 | 30.90 |
Comments /wp-admin/admin.php?page=swiftninjapro-comments | 3.34 | 33.27 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Better Page Comments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲81 | 14.36 ▲0.09 | 2.05 ▲0.41 | 38.38 ▼7.29 |
Dashboard /wp-admin | 2,218 ▲41 | 5.56 ▼0.09 | 82.10 ▼8.30 | 76.38 ▲30.35 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 1.99 ▲0.01 | 33.44 ▼1.43 | 33.08 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 23.13 ▼0.43 | 662.51 ▲25.01 | 120.16 ▲71.70 |
Media Library /wp-admin/upload.php | 1,426 ▲32 | 4.11 ▼0.04 | 95.89 ▼4.67 | 68.25 ▲24.59 |
SwiftNinjaPro Settings /wp-admin/admin.php?page=swiftninjapro-settings | 793 | 2.16 | 25.73 | 27.56 |
Comments /wp-admin/admin.php?page=swiftninjapro-comments | 1,081 | 2.04 | 25.14 | 38.22 |
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
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=swiftninjapro-comments
- > Warning in wp-content/plugins/swiftninjapro-comments/templates/admin.php+94
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
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 items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/swiftninjapro-comments/templates/settings-info.php
- > /wp-content/plugins/swiftninjapro-comments/templates/admin.php
- > /wp-content/plugins/swiftninjapro-comments/main.php
- > /wp-content/plugins/swiftninjapro-comments/swiftninjapro-comments.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: query, strip-html, comments, anti-spam, shortcode
swiftninjapro-comments/swiftninjapro-comments.php Passed 13 tests
The main PHP script in "Better Page Comments" version 1.4.9 is automatically included on every request by WordPress
120 characters long description:
Comments that Strip away HTML, but allow basic fonts through custom tags. Also includes some basic spam control options.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin890 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 195 | 33 | 879 |
JavaScript | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 68.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 5.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/settings_icon.png | 3.27KB | 1.85KB | ▼ 43.48% |