84% simple-course-creator

Code Review | Simple Course Creator

WordPress plugin Simple Course Creator scored84%from 54 tests.

About plugin

  • Plugin page: simple-course-cre...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.3
  • WordPress version: 6.3.1
  • First release: Apr 13, 2014
  • Latest release: Mar 30, 2020
  • Number of updates: 87
  • Update frequency: every 25.3 days
  • Top authors: sdavis2702 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /5,515 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.03MB] [CPU: ▼3.39ms] Passed 4 tests

A check of server-side resources used by Simple Course Creator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0350.58 ▲7.14
Dashboard /wp-admin3.35 ▲0.0052.74 ▼10.88
Posts /wp-admin/edit.php3.40 ▲0.0459.06 ▲7.41
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.00 ▼11.22
Media Library /wp-admin/upload.php3.27 ▲0.0437.23 ▲1.41
Courses /wp-admin/edit-tags.php?taxonomy=course3.2637.57
Course Settings /wp-admin/options-general.php?page=simple_course_creator3.2331.05

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simple Course Creator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.24 ▼1.162.16 ▲0.2441.38 ▼13.12
Dashboard /wp-admin2,229 ▲234.87 ▼0.02103.94 ▼3.7941.21 ▼8.82
Posts /wp-admin/edit.php2,150 ▲502.01 ▲0.0138.35 ▲1.6538.88 ▲4.90
Add New Post /wp-admin/post-new.php1,551 ▲1923.17 ▼0.12612.75 ▼32.7760.16 ▲1.21
Media Library /wp-admin/upload.php1,402 ▲24.28 ▼0.00101.46 ▼7.4545.41 ▼1.78
Courses /wp-admin/edit-tags.php?taxonomy=course1,2642.1428.1231.08
Course Settings /wp-admin/options-general.php?page=simple_course_creator1,0042.0222.9732.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-course-creator/includes/scc_templates/scc-output.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: taxonomy, lesson, course, series, sdavis2702

simple-course-creator/simple-course-creator.php 92% from 13 tests

This is the main PHP file of "Simple Course Creator" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin803 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5154359626
Markdown151089
CSS21675
JavaScript10013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity16.50
▷ Minimum class complexity2.00
▷ Maximum class complexity23.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods3497.14%
▷ Protected methods00.00%
▷ Private methods12.86%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin