62% emarksheet

Code Review | Online Marksheet Creator : eMarksheet

WordPress plugin Online Marksheet Creator : eMarksheet scored62%from 54 tests.

About plugin

  • Plugin page: emarksheet
  • Plugin version: 4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.3
  • WordPress version: 6.3.1
  • First release: Jun 30, 2014
  • Latest release: Dec 1, 2019
  • Number of updates: 22
  • Update frequency: every 90.1 days
  • Top authors: rohitashv (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

40+ active /73,961 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.10ms] Passed 4 tests

This is a short check of server-side resources used by Online Marksheet Creator : eMarksheet
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.89 ▼5.71
Dashboard /wp-admin3.34 ▲0.0352.99 ▼3.01
Posts /wp-admin/edit.php3.39 ▲0.0347.74 ▼4.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.05 ▼7.21
Media Library /wp-admin/upload.php3.26 ▲0.0338.06 ▼1.46
Settings /wp-admin/admin.php?page=eMarksheet-settings3.2335.98
Students List /wp-admin/admin.php?page=eMarksheet-student-list3.2733.71
Add Subject /wp-admin/admin.php?page=eMarksheet-subject3.2735.75
Help & Support /wp-admin/admin.php?page=eMarksheet-help3.2330.16
Print Marksheet /wp-admin/admin.php?page=eMarksheet-print3.2735.83
Add Marks /wp-admin/admin.php?page=eMarksheet-add-marks3.2433.72
Un-Install /wp-admin/admin.php?page=eMarksheet-remove3.2335.89
Add Class /wp-admin/admin.php?page=eMarksheet-main3.2431.89
Enroll Student /wp-admin/admin.php?page=eMarksheet-student3.2332.46

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: 5 new tables, 6 new options
New tables
emarksheet_class
emarksheet_marks
emarksheet_student
emarksheet_setting
emarksheet_subject
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Online Marksheet Creator : eMarksheet
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲10814.76 ▲0.451.97 ▲0.0244.78 ▲1.16
Dashboard /wp-admin2,250 ▲765.61 ▲0.0483.70 ▼21.2639.54 ▼3.18
Posts /wp-admin/edit.php2,158 ▲551.96 ▼0.0235.23 ▼4.8434.02 ▼2.47
Add New Post /wp-admin/post-new.php1,569 ▲3423.13 ▲4.90627.13 ▼44.0152.45 ▼15.57
Media Library /wp-admin/upload.php1,455 ▲524.16 ▼0.03102.71 ▲0.5646.49 ▲3.86
Settings /wp-admin/admin.php?page=eMarksheet-settings9542.1218.5549.85
Students List /wp-admin/admin.php?page=eMarksheet-student-list9062.0917.4326.21
Add Subject /wp-admin/admin.php?page=eMarksheet-subject9111.8118.0227.88
Help & Support /wp-admin/admin.php?page=eMarksheet-help8921.9922.4037.67
Print Marksheet /wp-admin/admin.php?page=eMarksheet-print9091.7617.5325.61
Add Marks /wp-admin/admin.php?page=eMarksheet-add-marks9001.9417.6127.21
Un-Install /wp-admin/admin.php?page=eMarksheet-remove8302.0024.3726.63
Add Class /wp-admin/admin.php?page=eMarksheet-main9591.7817.3827.73
Enroll Student /wp-admin/admin.php?page=eMarksheet-student1,2181.9416.7125.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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
  • The plugin did not uninstall successfully, leaving 5 tables in the database
    • emarksheet_subject
    • emarksheet_student
    • emarksheet_marks
    • emarksheet_setting
    • emarksheet_class
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=eMarksheet-main
    • > Notice in wp-content/plugins/emarksheet/menu-pages/emark_add_class.php+45
    Undefined index: action

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
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/emarksheet/menu-pages/help.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/emarksheet/menu-pages/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function query() on null in wp-content/plugins/emarksheet/install-script.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/emarksheet/menu-pages/emark_add_class.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/emarksheet/emarksheet.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/emarksheet/menu-pages/emark_add_student_list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/emarksheet/menu-pages/print.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/emarksheet/menu-pages/emark_add_marks.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/emarksheet/menu-pages/emark_add_sub.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/emarksheet/menu-pages/emark_add_student.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=eMarksheet-student
    • > Javascript (severe) in unknown
    /wp-admin/js/common.min.js?ver=6.3.1 1:6139 Uncaught TypeError: W(...).on is not a function
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=eMarksheet-student
    • > Javascript (severe) in unknown
    /wp-includes/js/heartbeat.min.js?ver=6.3.1 1:5086 Uncaught TypeError: i.on is not a function
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=eMarksheet-student
    • > Javascript (severe) in unknown
    /wp-includes/js/wp-auth-check.min.js?ver=6.3.1 1:502 Uncaught TypeError: i(...).on is not a function
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=eMarksheet-student
    • > Javascript (severe) in unknown
    /wp-admin/js/common.min.js?ver=6.3.1 1:3796 Uncaught TypeError: W(...).on is not a function
    • > GET request to /wp-admin/admin.php?page=eMarksheet-help
    • > Network (severe)
    wp-content/plugins/emarksheet/menu-pages/bootstrap/css/bootstrap-responsive.css - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Add Class), #2 (Add Subject), #3 (Add Student), #4 (Add Marks 1), #5 (Add Marks 2), #6 (Setting for the school), #7 (Print Marksheet1), #8 (Print Marksheet2), #9 (Frontend Result)
The official readme.txt might help

emarksheet/emarksheet.php 92% from 13 tests

"Online Marksheet Creator : eMarksheet" version 4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 161 characters long)

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
Everything looks great! No dangerous files found in this plugin7,003 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS2896484,710
JavaScript34783201,254
PHP1138111,039

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.30MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-8.png42.22KB17.74KB▼ 57.97%
screenshot-2.png30.34KB11.75KB▼ 61.26%
screenshot-4.png25.34KB10.35KB▼ 59.17%
screenshot-9.png59.23KB22.70KB▼ 61.67%
screenshot-6.png32.59KB12.85KB▼ 60.58%