84% jp-students-exam-admit-card-generator

Code Review | JP Students Exam Admit Card Generator

WordPress plugin JP Students Exam Admit Card Generator scored84%from 54 tests.

About plugin

  • Plugin page: jp-students-exam-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Feb 6, 2021
  • Latest release: Jul 26, 2022
  • Number of updates: 4
  • Update frequency: every 134.0 days
  • Top authors: Skjoy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,710 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.63MB] [CPU: ▼0.03ms] Passed 4 tests

An overview of server-side resources used by JP Students Exam Admit Card Generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.13 ▲0.6742.16 ▼0.58
Dashboard /wp-admin3.97 ▲0.6757.43 ▲6.31
Posts /wp-admin/edit.php4.03 ▲0.6754.80 ▼1.39
Add New Post /wp-admin/post-new.php6.49 ▲0.6096.51 ▼4.48
Media Library /wp-admin/upload.php3.81 ▲0.5845.40 ▲11.47
All Admit Card /wp-admin/edit.php?post_type=jseacg_p3.9548.55
Exam /wp-admin/edit-tags.php?taxonomy=jseacgExam&post_type=jseacg_p3.9042.17
Shortcodes /wp-admin/edit.php?post_type=jseacg_p&page=jseacgp_shortcode_active_page3.8140.05
Year /wp-admin/edit-tags.php?taxonomy=jseacgYear&post_type=jseacg_p3.9046.98
Add New /wp-admin/post-new.php?post_type=jseacg_p4.2556.22

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 86 new files
Database: no new tables, 42 new options
New WordPress options
jseacgp_f16
jseacgp_f11
jseacgp_institle
jseacgp_f13
db_upgraded
jseacgp_ename
jseacgp_sname
jseacgp_insfc
widget_theysaidso_widget
widget_recent-comments
...

Browser metrics Passed 4 tests

Checking browser requirements for JP Students Exam Admit Card Generator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,079 ▲31815.22 ▲1.286.20 ▲4.2238.24 ▼10.05
Dashboard /wp-admin2,371 ▲1946.13 ▲0.49106.17 ▲16.7034.92 ▼6.39
Posts /wp-admin/edit.php2,302 ▲2023.35 ▲1.3753.81 ▲15.0139.88 ▲3.57
Add New Post /wp-admin/post-new.php1,587 ▲6023.53 ▲0.64709.88 ▲101.8936.23 ▼13.98
Media Library /wp-admin/upload.php1,439 ▲364.11 ▼0.1393.71 ▼12.1748.14 ▲1.33
All Admit Card /wp-admin/edit.php?post_type=jseacg_p1,2943.3362.5031.95
Exam /wp-admin/edit-tags.php?taxonomy=jseacgExam&post_type=jseacg_p1,4763.0941.2529.41
Shortcodes /wp-admin/edit.php?post_type=jseacg_p&page=jseacgp_shortcode_active_page1,0103.0037.2025.07
Year /wp-admin/edit-tags.php?taxonomy=jseacgYear&post_type=jseacg_p1,4733.1040.0929.60
Add New /wp-admin/post-new.php?post_type=jseacg_p2,1314.7797.0238.77

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 detected upon uninstall: 42 options
    • jseacgp_f11
    • jseacgp_ename
    • jseacgp_ajEMessage
    • jseacgp_ajPMessage
    • can_compress_scripts
    • jseacgp_eclass
    • jseacgp_f6
    • jseacgp_f13
    • 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
Everything seems fine, however 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
Please fix the following items
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/jp-students-exam-admit-card-generator/includes/boxes/functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/jp-students-exam-admit-card-generator/includes/install_db.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jp-students-exam-admit-card-generator/jp-students-exam-admit-card-generator.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jp-students-exam-admit-card-generator/includes/shortcodes.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jp-students-exam-admit-card-generator/includes/class-pdf-download-form.php:99
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/jp-students-exam-admit-card-generator/includes/boxes/init.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jp-students-exam-admit-card-generator/includes/lib/custom-post-and-tax.php:36

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)
There were no browser issues found

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
9 plugin tags: student exam admit card, online exam admit card, exam admit card, admit card generator plugin, exam admit card plugin...

jp-students-exam-admit-card-generator/jp-students-exam-admit-card-generator.php 92% from 13 tests

The main PHP file in "JP Students Exam Admit Card Generator" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 316 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin20,065 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript73,2312,21714,253
PHP348171,2705,136
CSS49024676

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity77.00
▷ Minimum class complexity2.00
▷ Maximum class complexity339.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods264
▷ Static methods3412.88%
▷ Public methods22484.85%
▷ Protected methods4015.15%
▷ Private methods00.00%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/blank-signature.png1.04KB0.09KB▼ 90.85%
includes/boxes/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
includes/boxes/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
includes/boxes/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
includes/boxes/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%