84% video-metabox-aoc

Code Review | Video Metabox AOC

WordPress plugin Video Metabox AOC scored 84% from 54 tests.

About plugin

  • Plugin page: video-metabox-aoc
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: May 24, 2018
  • Latest release: Dec 31, 2021
  • Number of updates: 6
  • Update frequency: every 219.5 days
  • Top authors: ankittiwaari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 528 total downloads

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.69MB] [CPU: ▼16.60ms] Passed 4 tests

A check of server-side resources used by Video Metabox AOC
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.89 ▼8.71
Dashboard /wp-admin3.33 ▲0.0254.53 ▲6.71
Posts /wp-admin/edit.php3.45 ▲0.0948.83 ▼1.92
Add New Post /wp-admin/post-new.php3.09 ▼2.7936.72 ▼56.47
Media Library /wp-admin/upload.php3.23 ▲0.0035.28 ▲0.72

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Video Metabox AOC
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲20614.70 ▲0.111.84 ▲0.1037.88 ▼12.43
Dashboard /wp-admin2,344 ▲1536.43 ▲1.54124.95 ▲18.4137.59 ▼0.83
Posts /wp-admin/edit.php2,250 ▲1613.32 ▲1.2847.38 ▲6.3229.66 ▼5.78
Add New Post /wp-admin/post-new.php6,455 ▲4,92220.61 ▼2.53873.14 ▲236.6337.22 ▼25.63
Media Library /wp-admin/upload.php1,389 ▲14.20 ▼0.0577.97 ▼31.7540.21 ▼8.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-metabox-aoc/video-metabox-aoc.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

video-metabox-aoc/video-metabox-aoc.php Passed 13 tests

Analyzing the main PHP file in "Video Metabox AOC" version 1.1
73 characters long description:
This plugin allows you to upload video as a custom field for a post/page.

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 detected112 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1161280
JavaScript18623
CSS1009

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin