90% simple-course-creator-customizer

Code Review | Simple Course Creator Customizer

WordPress plugin Simple Course Creator Customizer scored 90% from 54 tests.

About plugin

  • Plugin page: simple-course-cre...
  • Plugin version: 1.0.5
  • 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: 32
  • Update frequency: every 68.8 days
  • Top authors: sdavis2702 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,625 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.37ms] Passed 4 tests

A check of server-side resources used by Simple Course Creator Customizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0543.21 ▲6.13
Dashboard /wp-admin3.34 ▲0.0445.78 ▼0.32
Posts /wp-admin/edit.php3.39 ▲0.0353.01 ▲3.30
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.61 ▼9.88
Media Library /wp-admin/upload.php3.27 ▲0.0336.09 ▼2.58

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Course Creator Customizer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.34 ▼1.172.04 ▲0.2450.58 ▲7.54
Dashboard /wp-admin2,200 ▲154.81 ▼1.06129.19 ▲22.7750.12 ▲2.64
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0246.68 ▲8.1441.04 ▲5.46
Add New Post /wp-admin/post-new.php1,514 ▼617.71 ▼5.42677.17 ▼33.5456.98 ▼1.72
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.1299.50 ▼18.3940.68 ▼14.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
6 plugin tags: series, sdavis2702, customizer, taxonomy, course...

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

The principal PHP file in "Simple Course Creator Customizer" v. 1.0.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

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
Everything looks great! No dangerous files found in this plugin231 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP262129184
Markdown117026
SVG10021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity15.00
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.24MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png12.02KB3.82KB▼ 68.22%
assets/icon-128x128.png3.60KB1.09KB▼ 69.70%
assets/banner-1544x500.png24.42KB7.77KB▼ 68.20%
assets/screenshot-1.png201.74KB90.21KB▼ 55.28%
assets/icon-256x256.png5.78KB1.98KB▼ 65.82%