84% saksh-course-system

Code Review | Saksh Course System

WordPress plugin Saksh Course System scored84%from 54 tests.

About plugin

  • Plugin page: saksh-course-system
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.6
  • WordPress version: 6.3.1
  • First release: Jan 28, 2021
  • Latest release: Mar 25, 2021
  • Number of updates: 3
  • Update frequency: every 19.0 days
  • Top authors: susheelhbti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /310 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
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼5.57ms] Passed 4 tests

Server-side resources used by Saksh Course System
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1637.73 ▼5.00
Dashboard /wp-admin3.44 ▲0.1045.19 ▼14.19
Posts /wp-admin/edit.php3.55 ▲0.2046.26 ▲3.08
Add New Post /wp-admin/post-new.php6.25 ▲0.3695.68 ▲0.12
Media Library /wp-admin/upload.php3.36 ▲0.1434.15 ▼3.22
Languages /wp-admin/edit-tags.php?taxonomy=languages&post_type=courses3.3632.71
All Courses /wp-admin/edit.php?post_type=courses3.4136.86
Subjects /wp-admin/edit-tags.php?taxonomy=subjects&post_type=courses3.3632.89
Add New /wp-admin/post-new.php?post_type=courses3.5660.34
Exams /wp-admin/edit-tags.php?taxonomy=exams&post_type=courses3.3631.20
Tags /wp-admin/edit-tags.php?taxonomy=tags&post_type=courses3.3630.85

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Saksh Course System
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲12513.70 ▼0.651.87 ▲0.1139.25 ▼4.00
Dashboard /wp-admin2,252 ▲645.88 ▲0.9993.96 ▼22.4938.70 ▼3.84
Posts /wp-admin/edit.php2,132 ▲431.99 ▼0.0139.16 ▼3.8037.01 ▲1.12
Add New Post /wp-admin/post-new.php1,563 ▲1918.36 ▲0.07609.41 ▼51.5962.04 ▲1.84
Media Library /wp-admin/upload.php1,428 ▲404.22 ▲0.0197.09 ▼16.8342.76 ▼8.77
Languages /wp-admin/edit-tags.php?taxonomy=languages&post_type=courses1,3052.1425.9229.08
All Courses /wp-admin/edit.php?post_type=courses1,1791.9431.4130.34
Subjects /wp-admin/edit-tags.php?taxonomy=subjects&post_type=courses1,3052.1326.2627.13
Add New /wp-admin/post-new.php?post_type=courses4,19711.63334.3497.46
Exams /wp-admin/edit-tags.php?taxonomy=exams&post_type=courses1,3022.1426.2425.46
Tags /wp-admin/edit-tags.php?taxonomy=tags&post_type=courses1,3052.1326.3624.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saksh-course-system/index.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/saksh-course-system/aistore_course_system_template.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: course system

saksh-course-system/index.php 85% from 13 tests

The principal PHP file in "Saksh Course System" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 183 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("saksh-course-system.php" instead of "index.php")

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 detected560 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP224857560

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.08
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected