10% latest-video-post-widget

Code Review | Latest Video

WordPress plugin Latest Video scored10%from 54 tests.

About plugin

  • Plugin page: latest-video-post...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Mar 16, 2015
  • Latest release: Jan 22, 2017
  • Number of updates: 18
  • Update frequency: every 52.6 days
  • Top authors: WebCodeWrap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,751 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/latest-video-post-widget/latest_video_post_widget.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; codeflavor_latestvideopost has a deprecated constructor

Server metrics [RAM: ▼2.19MB] [CPU: ▼61.80ms] Passed 4 tests

This is a short check of server-side resources used by Latest Video
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.644.73 ▼43.89
Dashboard /wp-admin2.11 ▼1.525.98 ▼61.94
Posts /wp-admin/edit.php2.11 ▼1.575.13 ▼45.81
Add New Post /wp-admin/post-new.php2.11 ▼4.045.58 ▼95.56
Media Library /wp-admin/upload.php2.11 ▼1.385.43 ▼36.82

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_codeflavor-latest-video-post
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Latest Video
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.27 ▼0.081.99 ▼0.1343.92 ▲1.77
Dashboard /wp-admin2,198 ▲215.62 ▼0.0592.22 ▼1.7841.76 ▲0.54
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0539.19 ▲2.1434.76 ▼0.70
Add New Post /wp-admin/post-new.php1,545 ▲523.20 ▼0.13677.36 ▼12.3752.85 ▲1.14
Media Library /wp-admin/upload.php1,400 ▼04.16 ▲0.04114.97 ▲4.1846.28 ▼1.20

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
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/latest-video-post-widget/latest_video_post_widget.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; codeflavor_latestvideopost has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_codeflavor-latest-video-post
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/latest-video-post-widget/latest_video_post_widget.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: video, wordpress, designer, plugin, marketer...

latest-video-post-widget/latest_video_post_widget.php 92% from 13 tests

The principal PHP file in "Latest Video" v. 1.0.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("latest-video-post-widget.php" instead of "latest_video_post_widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin100 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1251099
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin