Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.27ms] Passed 4 tests
An overview of server-side resources used by OpenHouseVideo
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.21 ▼2.40 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.16 ▼11.97 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.04 ▼6.45 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 93.31 ▼4.26 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.01 ▲5.15 |
Server storage [IO: ▲0.20MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for OpenHouseVideo
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲214 | 13.61 ▼0.78 | 8.34 ▲6.67 | 44.95 ▼3.67 |
Dashboard /wp-admin | 2,258 ▲76 | 5.87 ▼0.13 | 98.14 ▼26.20 | 38.78 ▼12.28 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.03 ▲0.03 | 36.83 ▼2.90 | 34.27 ▼2.90 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.07 ▲4.46 | 692.29 ▲59.87 | 57.27 ▲7.44 |
Media Library /wp-admin/upload.php | 1,440 ▲52 | 4.30 ▲0.09 | 99.93 ▼3.99 | 45.57 ▼0.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/openhousevideo/openhousevideo.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/openhousevideo/inc/core/assets.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/openhousevideo/inc/core/generator.php:13
- > PHP Fatal error
Uncaught Error: Class 'OpenHouseVideo_Admin' not found in wp-content/plugins/openhousevideo/admin/class-openhousevideo-admin-top-level.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/openhousevideo/inc/core/load.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/openhousevideo/inc/core/ajax.php:15
- > PHP Fatal error
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 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
8 plugin tags: openhousevideo, estate, platform, ohv, video...
openhousevideo/openhousevideo.php Passed 13 tests
"OpenHouseVideo" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
This is a plugin for OpenHouseVideo (https://www.openhousevideo.com)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,663 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 203 | 683 | 842 |
Sass | 16 | 6 | 54 | 756 |
JavaScript | 3 | 148 | 82 | 736 |
CSS | 3 | 35 | 6 | 329 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 2.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 2 | 13.33% |
Methods | 62 | |
▷ Static methods | 19 | 30.65% |
▷ Public methods | 40 | 64.52% |
▷ Protected methods | 9 | 14.52% |
▷ Private methods | 13 | 20.97% |
Functions | 10 | |
▷ Named functions | 10 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 2.33KB | 0.49KB | ▼ 79.10% |
assets/images/logo.png | 2.55KB | 2.62KB | 0.00% |