Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼4.37ms] Passed 4 tests
A check of server-side resources used by Property Hive AllAgents Review Embed
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 42.80 ▼4.58 |
Dashboard /wp-admin | 3.45 ▲0.15 | 49.93 ▼4.01 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 50.42 ▼1.98 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 88.04 ▼6.89 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.93 ▲4.40 |
AllAgents /wp-admin/options-general.php?page=allagents | 3.34 | 31.49 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
propertyhive_allagents_version |
widget_recent-posts |
propertyhive_allagents |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Property Hive AllAgents Review Embed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▲0.06 | 1.97 ▲0.02 | 44.22 ▼1.36 |
Dashboard /wp-admin | 2,202 ▲25 | 5.54 ▼0.11 | 87.96 ▼3.43 | 40.24 ▲0.08 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.06 | 35.99 ▼2.14 | 37.23 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.08 ▼0.22 | 676.65 ▼15.86 | 59.49 ▲9.43 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.03 | 94.75 ▼11.24 | 43.70 ▼3.58 |
AllAgents /wp-admin/options-general.php?page=allagents | 825 | 2.02 | 25.83 | 26.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method PH_AllAgents_Install::uninstall() should not be called statically
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- propertyhive_allagents_version
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/property-hive-allagents-review-embed/templates/allagents-reviews.php
- > /wp-content/plugins/property-hive-allagents-review-embed/templates/allagents-header.php
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: stars in wp-content/plugins/property-hive-allagents-review-embed/templates/allagents-header.php on line 9
- > PHP Notice
Undefined variable: firm_link in wp-content/plugins/property-hive-allagents-review-embed/templates/allagents-header.php on line 3
- > PHP Notice
Undefined variable: stars in wp-content/plugins/property-hive-allagents-review-embed/templates/allagents-header.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/property-hive-allagents-review-embed/templates/allagents-footer.php:3
- > PHP Notice
Undefined variable: header_background_colour in wp-content/plugins/property-hive-allagents-review-embed/templates/allagents-header.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/property-hive-allagents-review-embed/templates/allagents-reviews.php on line 4
- > PHP Notice
Undefined variable: stars in wp-content/plugins/property-hive-allagents-review-embed/templates/allagents-header.php on line 9
- > PHP Notice
Undefined variable: votes in wp-content/plugins/property-hive-allagents-review-embed/templates/allagents-header.php on line 15
- > PHP Notice
Undefined variable: rating in wp-content/plugins/property-hive-allagents-review-embed/templates/allagents-header.php on line 14
- > PHP Notice
Undefined variable: stars in wp-content/plugins/property-hive-allagents-review-embed/templates/allagents-header.php on line 9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: all agents, estate agents, property, real estate, propertyhive...
property-hive-allagents-review-embed/propertyhive-allagents.php 92% from 13 tests
The primary PHP file in "Property Hive AllAgents Review Embed" version 1.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("property-hive-allagents-review-embed.php" instead of "propertyhive-allagents.php")
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 plugin1,073 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 200 | 124 | 942 |
CSS | 2 | 17 | 1 | 123 |
JavaScript | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 61.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 5.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 22 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 15.38% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/allagents_logo.png | 5.10KB | 2.26KB | ▼ 55.74% |