79% openhousevideo

Code Review | OpenHouseVideo

WordPress plugin OpenHouseVideo scored79%from 54 tests.

About plugin

  • Plugin page: openhousevideo
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Jul 17, 2018
  • Latest release: Jul 19, 2018
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: dtsurcan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /496 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.21 ▼2.40
Dashboard /wp-admin3.33 ▲0.0349.16 ▼11.97
Posts /wp-admin/edit.php3.38 ▲0.0344.04 ▼6.45
Add New Post /wp-admin/post-new.php5.93 ▲0.0593.31 ▼4.26
Media Library /wp-admin/upload.php3.25 ▲0.0238.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲21413.61 ▼0.788.34 ▲6.6744.95 ▼3.67
Dashboard /wp-admin2,258 ▲765.87 ▼0.1398.14 ▼26.2038.78 ▼12.28
Posts /wp-admin/edit.php2,138 ▲492.03 ▲0.0336.83 ▼2.9034.27 ▼2.90
Add New Post /wp-admin/post-new.php1,543 ▲1523.07 ▲4.46692.29 ▲59.8757.27 ▲7.44
Media Library /wp-admin/upload.php1,440 ▲524.30 ▲0.0999.93 ▼3.9945.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP21203683842
Sass16654756
JavaScript314882736
CSS3356329

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 code0.17
Average class complexity2.31
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.34
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes16.25%
▷ Concrete classes1593.75%
▷ Final classes213.33%
Methods62
▷ Static methods1930.65%
▷ Public methods4064.52%
▷ Protected methods914.52%
▷ Private methods1320.97%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/icon.png2.33KB0.49KB▼ 79.10%
assets/images/logo.png2.55KB2.62KB0.00%