Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼11.01ms] Passed 4 tests
Analyzing server-side resources used by AnyComment Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.29 ▼2.65 |
Dashboard /wp-admin | 3.31 ▼0.03 | 50.01 ▼15.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.22 ▼3.11 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.68 ▼22.61 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.39 ▼1.74 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
AnyComment Analytics: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.20 ▼1.38 | 1.67 ▼0.29 | 44.08 ▼0.90 |
Dashboard /wp-admin | 2,239 ▲36 | 4.96 ▲0.08 | 106.01 ▼4.79 | 41.30 ▼1.99 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.23 ▲0.22 | 37.52 ▲1.57 | 35.07 ▼3.40 |
Add New Post /wp-admin/post-new.php | 1,542 ▼7 | 17.70 ▼5.59 | 662.01 ▼16.62 | 35.92 ▼22.66 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.38 ▲0.11 | 98.09 ▼19.30 | 45.11 ▼5.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/anycomment-analytics/templates/tab-summary.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/anycomment-analytics/templates/tab-files.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/anycomment-analytics/templates/tab-users.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/anycomment-analytics/templates/tab-emails.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function menu_page_url() in wp-content/plugins/anycomment-analytics/templates/graphs.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/anycomment-analytics/templates/tab-comments.php:3
- > PHP Fatal error
Uncaught Error: Interface 'EmailNotificationInterface' not found in wp-content/plugins/anycomment-analytics/includes/Emails/AdminNotification.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/anycomment-analytics/templates/tab-posts.php:3
- > PHP Fatal error
Uncaught Error: Class 'ReportSettings' not found in wp-content/plugins/anycomment-analytics/templates/tab-reports.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: anycomment, anycomment analytics, comment analytics, analytics
anycomment-analytics/anycomment-analytics.php 92% from 13 tests
This is the main PHP file of "AnyComment Analytics" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "4.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin18,325 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 14,430 |
PHP | 20 | 577 | 501 | 2,113 |
JavaScript | 4 | 98 | 76 | 460 |
CSS | 2 | 37 | 49 | 452 |
PO File | 2 | 145 | 154 | 379 |
Sass | 4 | 51 | 34 | 248 |
HTML | 4 | 28 | 4 | 123 |
Markdown | 3 | 45 | 0 | 120 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 16.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 29 | 34.94% |
▷ Public methods | 74 | 89.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 10.84% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 13 | |
▷ Global constants | 6 | 46.15% |
▷ Class constants | 7 | 53.85% |
▷ Public constants | 7 | 100.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
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/emails/star.png | 0.45KB | 0.81KB | 0.00% |
assets/img/emails/comment.png | 0.16KB | 0.24KB | 0.00% |
assets/img/emails/write.png | 0.24KB | 0.39KB | 0.00% |
assets/img/emails/person.png | 0.25KB | 0.43KB | 0.00% |