10% saksh-private-ielts-preparation

Code Review | Saksh private IELTS preparation

WordPress plugin Saksh private IELTS preparation scored10%from 54 tests.

About plugin

  • Plugin page: saksh-private-iel...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 18, 2020
  • Latest release: Jul 18, 2020
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: susheelhbti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /594 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/saksh-private-ielts-preparation/index.php+182
    Undefined variable: jal_db_version

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

An overview of server-side resources used by Saksh private IELTS preparation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.20 ▼6.43
Dashboard /wp-admin3.31 ▼0.0454.14 ▼10.07
Posts /wp-admin/edit.php3.36 ▲0.0051.40 ▲3.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.60 ▼18.96
Media Library /wp-admin/upload.php3.23 ▲0.0036.90 ▲1.33

Server storage [IO: ▲1.01MB] [DB: ▲0.96MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: 1 new table, 7 new options
New tables
wp_exercise
New WordPress options
jal_db_version
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Saksh private IELTS preparation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.15 ▼1.162.04 ▲0.1045.33 ▲2.71
Dashboard /wp-admin2,221 ▲184.87 ▼1.01105.81 ▲2.0041.09 ▼2.60
Posts /wp-admin/edit.php2,097 ▼62.05 ▼0.0036.39 ▼5.4936.03 ▼0.73
Add New Post /wp-admin/post-new.php1,545 ▼023.18 ▲0.19696.68 ▼2.4963.17 ▲8.08
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.0798.61 ▼8.6843.55 ▼3.00

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_exercise
  • This plugin does not fully uninstall, leaving 7 options in the database
    • jal_db_version
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/saksh-private-ielts-preparation/index.php:143

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: ielts test, ielts, exam software, private ielts study

saksh-private-ielts-preparation/index.php 92% from 13 tests

The main PHP script in "Saksh private IELTS preparation" version 1.1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("saksh-private-ielts-preparation.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,227 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP183103,227

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected