89% ld-assignment-uploads-ctrl

Code Review | LearnDash Assignment Uploads Control

WordPress plugin LearnDash Assignment Uploads Control scored89%from 54 tests.

About plugin

  • Plugin page: ld-assignment-upl...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2017
  • Latest release: Nov 21, 2017
  • Number of updates: 11
  • Update frequency: every 1.2 days
  • Top authors: brbaso (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,297 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by LearnDash Assignment Uploads Control
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.97 ▼0.93
Dashboard /wp-admin3.31 ▼0.0448.99 ▼16.25
Posts /wp-admin/edit.php3.36 ▲0.0045.27 ▼3.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.40 ▼27.17
Media Library /wp-admin/upload.php3.23 ▲0.0035.14 ▼1.23

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for LearnDash Assignment Uploads Control
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.33 ▼1.021.90 ▲0.1943.42 ▲2.03
Dashboard /wp-admin2,209 ▲204.84 ▼0.14105.77 ▼12.5245.24 ▼1.80
Posts /wp-admin/edit.php2,094 ▲52.00 ▼0.1734.39 ▼5.8034.21 ▼3.44
Add New Post /wp-admin/post-new.php1,544 ▲3023.25 ▲5.65622.77 ▼43.8362.29 ▲3.44
Media Library /wp-admin/upload.php1,397 ▲94.21 ▼0.03101.44 ▼8.1145.98 ▼4.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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
Attributes that require attention:
  • Requires php: Version format is invalid
Please take inspiration from this readme.txt

ld-assignment-uploads-ctrl/ld-assignment-uploads-ctrl.php 92% from 13 tests

The main file in "LearnDash Assignment Uploads Control" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,529 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS45122,219
SVG100685
PHP11224408615
JavaScript24610

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.25
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods58
▷ Static methods35.17%
▷ Public methods5289.66%
▷ Protected methods00.00%
▷ Private methods610.34%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 are no PNG files in this plugin