84% simple-course-creator-updates

Code Review | Simple Course Creator - Updates

WordPress plugin Simple Course Creator - Updates scored84%from 54 tests.

About plugin

  • Plugin page: simple-course-cre...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9
  • WordPress version: 6.3.1
  • First release: May 5, 2014
  • Latest release: Oct 1, 2014
  • Number of updates: 19
  • Update frequency: every 8.1 days
  • Top authors: alexmangini (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,813 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Simple Course Creator - Updates
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.11 ▼5.41
Dashboard /wp-admin3.31 ▲0.0146.41 ▼3.87
Posts /wp-admin/edit.php3.36 ▲0.0146.64 ▼0.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.29 ▼16.77
Media Library /wp-admin/upload.php3.23 ▲0.0133.36 ▼3.08

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Course Creator - Updates
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.27 ▼1.461.66 ▼0.3443.83 ▲0.49
Dashboard /wp-admin2,203 ▲155.82 ▼0.08104.73 ▼8.0136.10 ▼10.52
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0339.94 ▼1.2733.88 ▼3.98
Add New Post /wp-admin/post-new.php1,533 ▲1923.21 ▲5.69664.70 ▲35.4254.10 ▲6.73
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0294.97 ▼0.9443.89 ▼0.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/simple-course-creator-updates/includes/scc_templates/sccu-output.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
7 plugin tags: timeline, story, lesson, updates, series...

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

The principal PHP file in "Simple Course Creator - Updates" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
No dangerous file extensions were detected465 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4120103216
CSS24119116
PO File1171767
Markdown129053
SVG10013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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