Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.00ms] Passed 4 tests
This is a short check of server-side resources used by eHive Object Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 45.41 ▲3.08 |
Dashboard /wp-admin | 3.37 ▲0.07 | 52.45 ▼6.40 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 54.92 ▲8.90 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 89.13 ▼18.09 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.08 ▲1.43 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by eHive Object Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▲0.83 | 1.58 ▼3.65 | 40.49 ▼3.84 |
Dashboard /wp-admin | 2,198 ▲21 | 5.64 ▲0.06 | 89.72 ▼14.50 | 37.25 ▼9.73 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.03 ▼0.00 | 38.74 ▲2.03 | 37.80 ▲0.50 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.21 ▼0.40 | 659.19 ▲44.98 | 57.88 ▼14.19 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.10 ▼0.07 | 97.14 ▼5.37 | 42.67 ▲1.21 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
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 fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ehive-object-comments/templates/eHiveObjectComments.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ehive-object-comments/templates/eHiveObjectComments.php on line 26
- > PHP Notice
Undefined variable: options in wp-content/plugins/ehive-object-comments/templates/eHiveObjectComments.php on line 26
- > PHP Notice
Undefined variable: css_class in wp-content/plugins/ehive-object-comments/templates/eHiveObjectComments.php on line 87
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ehive-object-comments/EHiveObjectComments.php:29
- > PHP Notice
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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (screenshot_1.png), #2 (screenshot_2.png)
ehive-object-comments/EHiveObjectComments.php 85% from 13 tests
The primary PHP file in "eHive Object Comments" version 2.4.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ehive-object-comments.php" instead of "EHiveObjectComments.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 173 characters long)
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
There were no executable files found in this plugin532 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 131 | 50 | 417 |
JavaScript | 1 | 20 | 1 | 62 |
CSS | 1 | 14 | 14 | 53 |
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.30 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin