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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼11.32ms] Passed 4 tests
Analyzing server-side resources used by eHive Object Details
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.25 ▼3.25 |
Dashboard /wp-admin | 3.40 ▲0.05 | 42.61 ▼17.65 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 45.20 ▼5.97 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 79.95 ▼18.40 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.56 ▼1.41 |
Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by eHive Object Details
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.33 ▼0.06 | 1.56 ▼0.11 | 37.18 ▼6.56 |
Dashboard /wp-admin | 2,195 ▲18 | 5.60 ▲0.02 | 80.85 ▼7.20 | 37.01 ▼4.04 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▲0.05 | 40.81 ▲6.31 | 36.50 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,528 ▼3 | 23.29 ▲0.36 | 669.51 ▼9.28 | 67.42 ▲14.94 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.22 ▲0.06 | 103.03 ▲4.99 | 44.96 ▼1.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function getMediaSetByIdentifier() on null in wp-content/plugins/ehive-object-details/templates/eHiveObjectDetails.php:75
- > PHP Notice
Undefined variable: css_class in wp-content/plugins/ehive-object-details/templates/eHiveObjectDetails.php on line 19
- > PHP Notice
Undefined variable: object in wp-content/plugins/ehive-object-details/templates/eHiveObjectDetails.php on line 75
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ehive-object-details/EHiveObjectDetails.php:28
- > 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 93% from 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: ehive, collection, museum, history, archive
ehive-object-details/EHiveObjectDetails.php 85% from 13 tests
The principal PHP file in "eHive Object Details" v. 2.4.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ehive-object-details.php" instead of "EHiveObjectDetails.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,316 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 179 | 92 | 748 |
CSS | 2 | 27 | 27 | 332 |
HTML | 2 | 34 | 5 | 202 |
JavaScript | 3 | 11 | 6 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 70.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
54 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/prettyPhoto_compressed_3.1.6/images/prettyPhoto/default/sprite_prev.png | 1.34KB | 0.38KB | ▼ 71.73% |
js/prettyPhoto_compressed_3.1.6/images/prettyPhoto/facebook/contentPatternBottom.png | 0.14KB | 0.11KB | ▼ 21.13% |
images/delete.png | 0.70KB | 0.72KB | 0.00% |
images/creative-commons/by-nd.png | 4.45KB | 2.42KB | ▼ 45.61% |
images/creative-commons/by-nc-sa.png | 5.84KB | 2.88KB | ▼ 50.65% |