90% coursecheck

Code Review | Coursecheck

WordPress plugin Coursecheck scored90%from 54 tests.

About plugin

  • Plugin page: coursecheck
  • Plugin version: 1.10.11
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Jan 18, 2021
  • Latest release: Aug 24, 2023
  • Number of updates: 49
  • Update frequency: every 19.4 days
  • Top authors: southcoastonline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,167 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.51ms] Passed 4 tests

This is a short check of server-side resources used by Coursecheck
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1145.35 ▲4.05
Dashboard /wp-admin3.42 ▲0.0751.66 ▼15.72
Posts /wp-admin/edit.php3.53 ▲0.1756.82 ▲7.14
Add New Post /wp-admin/post-new.php6.00 ▲0.1289.70 ▼15.14
Media Library /wp-admin/upload.php3.34 ▲0.1140.93 ▲0.77

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_coursecheck_recent_reviews
theysaidso_admin_options
widget_recent-posts
widget_coursecheck_widget

Browser metrics Passed 4 tests

Coursecheck: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.79 ▲0.441.69 ▼0.4444.75 ▼0.04
Dashboard /wp-admin2,198 ▲305.66 ▲0.1290.63 ▲0.0742.16 ▼5.61
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0538.78 ▲3.4734.84 ▼3.15
Add New Post /wp-admin/post-new.php6,230 ▲4,70219.14 ▼4.23929.27 ▲222.7051.98 ▼5.31
Media Library /wp-admin/upload.php1,400 ▲34.23 ▼0.03109.62 ▼5.1547.05 ▼0.24

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 8 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_coursecheck_recent_reviews
    • widget_coursecheck_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP 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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: coursecheckcom, courses, course reviews, coursecheck

coursecheck/coursecheck.php Passed 13 tests

The entry point to "Coursecheck" version 1.10.11 is a PHP file that has certain tags in its header comment area
88 characters long description:
Reviews widget for training providers using coursecheck.com to collect student feedback.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected884 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP162115447
CSS2467412
JavaScript20125

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity11.33
▷ Minimum class complexity10.00
▷ Maximum class complexity14.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1368.42%
▷ Protected methods00.00%
▷ Private methods631.58%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/images/icon-quote.png1.14KB0.27KB▼ 76.03%