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
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼1.84ms] Passed 4 tests
Analyzing server-side resources used by Realtime Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 47.11 ▲1.07 |
Dashboard /wp-admin | 3.47 ▲0.17 | 45.63 ▼8.28 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 47.61 ▲2.71 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 94.21 ▼2.84 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.60 ▲2.87 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_rtc_cache |
New WordPress options |
---|
widget_theysaidso_widget |
rtc-version |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
rtc-settings |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Realtime Comments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲195 | 14.14 ▼0.08 | 6.14 ▲3.75 | 40.00 ▼10.50 |
Dashboard /wp-admin | 2,222 ▲31 | 4.85 ▼0.03 | 108.95 ▲1.46 | 41.99 ▼6.31 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.02 ▲0.01 | 40.17 ▼2.16 | 35.53 ▲0.64 |
Add New Post /wp-admin/post-new.php | 1,537 ▲3 | 18.23 ▼4.77 | 624.59 ▼8.88 | 56.03 ▼3.46 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.20 ▲0.01 | 96.59 ▼9.56 | 40.51 ▼3.85 |
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 does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- rtc-version
- db_upgraded
- widget_theysaidso_widget
- rtc-settings
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 0% 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 take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/realtime-comments/ajax.php
- > /wp-content/plugins/realtime-comments/realtime-comments.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker_page' not found in wp-content/plugins/realtime-comments/rtc-page-selector-walker.class.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: interactive, comments, real time, update, chat...
realtime-comments/realtime-comments.php Passed 13 tests
The principal PHP file in "Realtime Comments" v. 0.8 is loaded by WordPress automatically on each request
147 characters long description:
Accepted comments from users are added to pages in real-time, without need to refresh. Makes comments section work interactively, like a chatroom.
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
No dangerous file extensions were detected966 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 155 | 118 | 737 |
JavaScript | 2 | 22 | 36 | 222 |
CSS | 2 | 1 | 0 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 35.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 16 | 34.04% |
▷ Public methods | 40 | 85.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 14.89% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
No PNG files were detected