Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼8.51ms] Passed 4 tests
Server-side resources used by eHive Objects Gallery widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 44.55 ▼3.28 |
Dashboard /wp-admin | 3.49 ▲0.18 | 48.63 ▼8.05 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.67 ▼6.41 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 83.20 ▼16.28 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 36.33 ▲2.88 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_ehiveobjectsgallery_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for eHive Objects Gallery widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.47 ▲0.04 | 1.73 ▼0.52 | 43.55 ▲0.00 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.94 | 102.72 ▼5.90 | 38.66 ▼12.71 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.07 | 39.23 ▼1.40 | 34.27 ▼3.18 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.13 ▲4.97 | 627.51 ▲16.48 | 51.99 ▼11.35 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▼0.04 | 97.26 ▼9.36 | 39.81 ▼7.42 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_ehiveobjectsgallery_widget
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ehive-objects-gallery-widget/EHiveObjectsGallery_Widget.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
5 plugin tags: ehive, archive, museum, history, collection
ehive-objects-gallery-widget/EHiveObjectsGallery_Widget.php 85% from 13 tests
The principal PHP file in "eHive Objects Gallery widget" v. 2.4.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 201 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("ehive-objects-gallery-widget.php" instead of "EHiveObjectsGallery_Widget.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin811 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 140 | 28 | 749 |
XML | 3 | 0 | 0 | 40 |
JavaScript | 1 | 3 | 0 | 12 |
CSS | 1 | 5 | 14 | 8 |
INI | 1 | 0 | 0 | 2 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 148)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 195.00 |
▷ Minimum class complexity | 195.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 28.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 148.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 57.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 42.86% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin