83% dx-grading-system

Code Review | Grading System Daxxip

WordPress plugin Grading System Daxxip scored83%from 54 tests.

About plugin

  • Plugin page: dx-grading-system
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 11, 2012
  • Latest release: Sep 22, 2021
  • Number of updates: 17
  • Update frequency: every 197.9 days
  • Top authors: HasanulBanna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Server-side resources used by Grading System Daxxip
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.36 ▼0.21
Dashboard /wp-admin3.31 ▼0.0449.77 ▼16.62
Posts /wp-admin/edit.php3.36 ▲0.0052.07 ▲0.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.76 ▲5.34
Media Library /wp-admin/upload.php3.23 ▲0.0037.06 ▼0.20

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Grading System Daxxip
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5613.28 ▼1.311.86 ▲0.0342.44 ▼0.34
Dashboard /wp-admin2,224 ▲214.89 ▲0.03100.75 ▼18.3240.32 ▼3.74
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0539.46 ▲1.8033.77 ▼0.36
Add New Post /wp-admin/post-new.php1,554 ▲918.40 ▼4.71658.11 ▼22.5160.07 ▲10.43
Media Library /wp-admin/upload.php1,403 ▲34.28 ▲0.04105.52 ▲1.7349.43 ▼0.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dx-grading-system/index.php:20

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === dx-grading-system === )
  • Screenshots: Add images for these screenshots: #1 (Grading Form), #2 (Grad Display)
You can look at the official readme.txt

dx-grading-system/index.php 92% from 13 tests

Analyzing the main PHP file in "Grading System Daxxip" version 1.0
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dx-grading-system.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
Everything looks great! No dangerous files found in this plugin138 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1379110
CSS12028

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin