90% simple-course-creator-post-meta

Code Review | Simple Course Creator Post Meta

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

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,483 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: ▼5.62ms] Passed 4 tests

A check of server-side resources used by Simple Course Creator Post Meta
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.07 ▼2.57
Dashboard /wp-admin3.32 ▲0.0143.54 ▲0.48
Posts /wp-admin/edit.php3.37 ▲0.0148.09 ▼0.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.49 ▼20.20
Media Library /wp-admin/upload.php3.24 ▲0.0135.53 ▲1.66

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Course Creator Post Meta
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.43 ▼0.221.92 ▲0.0539.55 ▼1.88
Dashboard /wp-admin2,206 ▲205.91 ▲0.81106.76 ▼8.0440.32 ▼1.90
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0038.79 ▼0.7034.10 ▼0.71
Add New Post /wp-admin/post-new.php1,542 ▲923.24 ▼0.08577.19 ▼34.0244.35 ▼2.88
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.09105.64 ▼3.6947.49 ▲2.10

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: taxonomy, sdavis2702, lesson, course, customizer...

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

The main PHP script in "Simple Course Creator Post Meta" version 1.0.8 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin206 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP473163157
Markdown122045
CSS1004

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin