84% sas-wp-video-user-guide

Code Review | SelfAssemblySites WP Video User Guide

WordPress plugin SelfAssemblySites WP Video User Guide scored84%from 54 tests.

About plugin

  • Plugin page: sas-wp-video-user...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 8, 2016
  • Latest release: Mar 8, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: WebsiteDoctor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /739 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.96ms] Passed 4 tests

Analyzing server-side resources used by SelfAssemblySites WP Video User Guide
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.43 ▲2.98
Dashboard /wp-admin3.32 ▲0.0144.56 ▼3.87
Posts /wp-admin/edit.php3.37 ▲0.0156.83 ▲10.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.80 ▼10.41
Media Library /wp-admin/upload.php3.24 ▲0.0133.63 ▼0.52

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for SelfAssemblySites WP Video User Guide
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /7,538 ▲4,79278.84 ▲64.16351.00 ▲349.1139.77 ▼5.53
Dashboard /wp-admin6,576 ▲4,38862.02 ▲55.931,844.19 ▲1,737.9163.83 ▲11.55
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0042.71 ▲2.8739.62 ▲2.97
Add New Post /wp-admin/post-new.php1,532 ▲1218.51 ▼4.53595.29 ▼49.2572.27 ▲14.41
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.12101.43 ▼0.2141.62 ▼3.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sas-wp-video-user-guide/sas-wp-video-user-guide.php:36

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 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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (http://i.imgur.com/IbxmCdv.jpg) image missing
The official readme.txt might help

sas-wp-video-user-guide/sas-wp-video-user-guide.php Passed 13 tests

"SelfAssemblySites WP Video User Guide" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
Embeds a WordPress video user guide right into your WordPress Dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1141534

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 code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin