90% vc-addon-for-wp-courseware

Code Review | WP Courseware for WPBakery Page Builder

WordPress plugin WP Courseware for WPBakery Page Builder scored90%from 54 tests.

About plugin

  • Plugin page: vc-addon-for-wp-c...
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Apr 13, 2016
  • Latest release: Sep 9, 2021
  • Number of updates: 26
  • Update frequency: every 102.9 days
  • Top authors: flyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /12,268 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

This is a short check of server-side resources used by WP Courseware for WPBakery Page Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.34 ▼3.17
Dashboard /wp-admin3.31 ▼0.0448.35 ▼12.62
Posts /wp-admin/edit.php3.36 ▲0.0043.43 ▼4.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.88 ▼17.83
Media Library /wp-admin/upload.php3.23 ▲0.0035.93 ▲0.71

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP Courseware for WPBakery Page Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.10 ▼0.271.87 ▲0.3638.40 ▼1.54
Dashboard /wp-admin2,198 ▲205.58 ▼0.0782.06 ▼40.8838.21 ▼13.48
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0733.97 ▼6.9032.62 ▼5.10
Add New Post /wp-admin/post-new.php1,526 ▼223.26 ▲0.02664.54 ▲3.6552.67 ▲0.87
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0095.75 ▼3.7245.50 ▼0.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: selling courses online, learning management system

vc-addon-for-wp-courseware/visual-composer-addon-for-wp-courseware.php 92% from 13 tests

The principal PHP file in "WP Courseware for WPBakery Page Builder" v. 1.8 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vc-addon-for-wp-courseware.php" instead of "visual-composer-addon-for-wp-courseware.php")

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
There were no executable files found in this plugin90 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1345290

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods350.00%
▷ Public methods583.33%
▷ Protected methods116.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/wpcw-icon.png25.88KB8.88KB▼ 65.68%