84% wp101

Code Review | WP101 Video Tutorial Plugin

WordPress plugin WP101 Video Tutorial Plugin scored84%from 54 tests.

About plugin

  • Plugin page: wp101
  • Plugin version: 5.3.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 6, 2011
  • Latest release: Aug 31, 2022
  • Number of updates: 94
  • Update frequency: every 42.8 days
  • Top authors: shawndh (95.74%)stevegrunwell (5.32%)

Code review

54 tests

User reviews

12 reviews

Install metrics

20,000+ active /224,446 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.29ms] Passed 4 tests

A check of server-side resources used by WP101 Video Tutorial Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0534.70 ▼3.41
Dashboard /wp-admin3.33 ▼0.0152.39 ▼12.67
Posts /wp-admin/edit.php3.39 ▲0.0350.09 ▼1.87
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.39 ▼27.20
Media Library /wp-admin/upload.php3.26 ▲0.0336.25 ▲2.70

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP101 Video Tutorial Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.24 ▼0.481.81 ▲0.1341.58 ▼0.88
Dashboard /wp-admin2,211 ▲315.64 ▲0.0289.03 ▼11.2039.58 ▼5.76
Posts /wp-admin/edit.php2,116 ▲161.97 ▼0.0241.23 ▲1.4038.31 ▲1.35
Add New Post /wp-admin/post-new.php1,539 ▲1323.70 ▲0.60660.61 ▼9.5750.80 ▲0.85
Media Library /wp-admin/upload.php1,416 ▲164.20 ▲0.0196.36 ▼8.7542.88 ▼2.43

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WP101\\TemplateTags\\get_api_key() in wp-content/plugins/wp101/views/settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WP101\\Admin\\add_action() in wp-content/plugins/wp101/includes/admin.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp101/views/add-ons.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WP101\\Addons\\add_action() in wp-content/plugins/wp101/includes/addons.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WP101\\TemplateTags\\add_action() in wp-content/plugins/wp101/includes/template-tags.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WP101\\Deprecated\\add_action() in wp-content/plugins/wp101/includes/deprecated.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp101/wp101.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WP101\\Migrate\\add_action() in wp-content/plugins/wp101/includes/migrate.php:70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WP101\\Shortcode\\add_action() in wp-content/plugins/wp101/includes/shortcode.php:24
    • > PHP Notice
      Undefined variable: public_key in wp-content/plugins/wp101/views/listings.php on line 14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: help, wp101, screencast, tutorials, learn...

wp101/wp101.php 92% from 13 tests

The main PHP script in "WP101 Video Tutorial Plugin" version 5.3.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "5.4")

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
Everything looks great! No dangerous files found in this plugin1,195 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP133195931,130
JSON10061
CSS2222
JavaScript2042

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity19.00
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods414.81%
▷ Public methods2177.78%
▷ Protected methods518.52%
▷ Private methods13.70%
Functions46
▷ Named functions4393.48%
▷ Anonymous functions36.52%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.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
No PNG files were detected