90% easy-student-management

Code Review | Easy Student Management

WordPress plugin Easy Student Management scored90%from 54 tests.

About plugin

  • Plugin page: easy-student-mana...
  • Plugin version: 1.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8.4
  • WordPress version: 6.3.1
  • First release: Jan 18, 2018
  • Latest release: Jan 18, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: menka123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,119 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Easy Student Management
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.51 ▲4.57
Dashboard /wp-admin3.33 ▲0.0347.02 ▼5.86
Posts /wp-admin/edit.php3.38 ▲0.0350.46 ▼1.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.06 ▲1.26
Media Library /wp-admin/upload.php3.25 ▲0.0338.22 ▲2.59
Add New /wp-admin/post-new.php?post_type=student3.2946.07
Student /wp-admin/edit.php?post_type=student3.3037.50

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Easy Student Management
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.74 ▲0.191.89 ▼0.0144.80 ▼5.25
Dashboard /wp-admin2,222 ▲455.64 ▲0.0485.01 ▼4.4440.22 ▲1.05
Posts /wp-admin/edit.php2,130 ▲272.03 ▲0.0535.91 ▼5.9535.46 ▼2.67
Add New Post /wp-admin/post-new.php1,554 ▲2622.93 ▼0.13684.71 ▼4.0877.74 ▲15.70
Media Library /wp-admin/upload.php1,427 ▲244.17 ▼0.04103.56 ▲3.9044.72 ▼1.16
Add New /wp-admin/post-new.php?post_type=student1,4912.5356.0048.52
Student /wp-admin/edit.php?post_type=student1,1311.9831.5931.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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)
No browser issues were 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
4 plugin tags: easy student management, student, student list, student management

easy-student-management/easy_student_management.php 92% from 13 tests

The main PHP file in "Easy Student Management" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-student-management.php" instead of "easy_student_management.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 detected172 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11611172

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions8
▷ Named functions8100.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 images were found in this plugin