89% wp-courseware-convertkit-addon

Code Review | WP Courseware for ConvertKit

WordPress plugin WP Courseware for ConvertKit scored89%from 54 tests.

About plugin

  • Plugin page: wp-courseware-con...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 25, 2019
  • Latest release: Dec 9, 2022
  • Number of updates: 10
  • Update frequency: every 153.7 days
  • Top authors: flyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by WP Courseware for ConvertKit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.20 ▼0.01
Dashboard /wp-admin3.31 ▼0.0442.69 ▼16.62
Posts /wp-admin/edit.php3.36 ▲0.0043.57 ▼2.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.51 ▼19.02
Media Library /wp-admin/upload.php3.23 ▲0.0038.61 ▲4.12

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Courseware for ConvertKit: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.101.86 ▲0.1645.50 ▲4.94
Dashboard /wp-admin2,206 ▲155.82 ▼0.0398.49 ▼8.2139.29 ▼4.02
Posts /wp-admin/edit.php2,089 ▲212.04 ▲0.0034.63 ▼0.9138.86 ▲4.46
Add New Post /wp-admin/post-new.php1,514 ▼517.51 ▼5.50653.39 ▼21.7058.99 ▼9.57
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.0393.79 ▼4.5440.31 ▼4.79

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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
3 plugin tags: convertkit, wordpress learning management system, wordpress lms

wp-courseware-convertkit-addon/wpcw-convertkit.php 85% from 13 tests

The primary PHP file in "WP Courseware for ConvertKit" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-courseware-convertkit-addon.php" instead of "wpcw-convertkit.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,365 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP9223641905
JavaScript73916373
JSON20049
Sass17037
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
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
Namespaces1
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%
Functions53
▷ Named functions53100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
No PNG images were found in this plugin