78% jp-students-result-management-system

Code Review | JP Students Result Management System

WordPress plugin JP Students Result Management System scored78%from 54 tests.

About plugin

  • Plugin page: jp-students-resul...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 18, 2015
  • Latest release: Sep 19, 2023
  • Number of updates: 44
  • Update frequency: every 68.6 days
  • Top authors: Skjoy (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /20,164 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼2.04ms] Passed 4 tests

Analyzing server-side resources used by JP Students Result Management System
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2851.22 ▲10.28
Dashboard /wp-admin3.65 ▲0.3554.98 ▲7.27
Posts /wp-admin/edit.php3.71 ▲0.3556.72 ▲4.24
Add New Post /wp-admin/post-new.php6.17 ▲0.2985.27 ▼21.78
Media Library /wp-admin/upload.php3.49 ▲0.2738.22 ▲2.13
Years /wp-admin/edit-tags.php?taxonomy=years&post_type=jp_students_result3.5243.78
Classes /wp-admin/edit-tags.php?taxonomy=classes&post_type=jp_students_result3.5239.66
Get Premium /wp-admin/edit.php?post_type=jp_students_result&page=jsrms_premium_features_page3.4937.48
Shortcode /wp-admin/edit.php?post_type=jp_students_result&page=jsrms_shortcode_menu3.4940.04
All Students Result /wp-admin/edit.php?post_type=jp_students_result3.5744.70
Add New /wp-admin/post-new.php?post_type=jp_students_result3.9557.35

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for JP Students Result Management System
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,083 ▲33714.95 ▲0.605.92 ▲4.2742.91 ▲1.75
Dashboard /wp-admin2,375 ▲2016.17 ▲0.60114.92 ▲22.6737.34 ▼4.40
Posts /wp-admin/edit.php2,306 ▲2033.26 ▲1.2356.33 ▲15.3637.34 ▲0.24
Add New Post /wp-admin/post-new.php1,590 ▲5923.56 ▲0.41677.31 ▲30.2335.61 ▼18.78
Media Library /wp-admin/upload.php1,443 ▲434.21 ▲0.0884.90 ▼23.6743.67 ▼1.96
Years /wp-admin/edit-tags.php?taxonomy=years&post_type=jp_students_result1,4803.1146.3030.58
Classes /wp-admin/edit-tags.php?taxonomy=classes&post_type=jp_students_result1,4833.0547.2831.19
Get Premium /wp-admin/edit.php?post_type=jp_students_result&page=jsrms_premium_features_page1,1063.0338.3227.02
Shortcode /wp-admin/edit.php?post_type=jp_students_result&page=jsrms_shortcode_menu1,0282.9838.0124.78
All Students Result /wp-admin/edit.php?post_type=jp_students_result1,2953.2448.7526.76
Add New /wp-admin/post-new.php?post_type=jp_students_result2,1384.8592.6942.34

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/jp-students-result-management-system/boxes/tests/phpunit/includes/bootstrap.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/jp-students-result-management-system/boxes/functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/jp-students-result-management-system/boxes/init.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/jp-students-result-management-system/boxes/functions.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/jp-students-result-management-system/boxes/tests/phpunit/tests/CMB_Core_Test.php:3

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 is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: university, result, result management system, academic, student...

jp-students-result-management-system/index.php 85% from 13 tests

The principal PHP file in "JP Students Result Management System" v. 1.7 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 269 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("jp-students-result-management-system.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin17,478 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript63,2022,23914,230
PHP106201,0812,257
CSS37232578
Markdown3880288
Bourne Shell115459
JSON10031
YAML15018
XML10117

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity57.14
▷ Minimum class complexity1.00
▷ Maximum class complexity136.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods134
▷ Static methods3425.37%
▷ Public methods13298.51%
▷ Protected methods21.49%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
boxes/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
boxes/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
boxes/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
boxes/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
boxes/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%