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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.86ms] Passed 4 tests
An overview of server-side resources used by LearnPress - Prerequisites Courses
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.91 ▼3.95 |
Dashboard /wp-admin | 3.30 ▲0.00 | 43.11 ▼3.31 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.43 ▼1.98 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.11 ▼2.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.10 ▲1.11 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for LearnPress - Prerequisites Courses
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.33 ▼1.04 | 2.03 ▼0.05 | 41.80 ▲0.53 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼1.01 | 107.77 ▲7.79 | 39.55 ▼3.59 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.03 | 39.78 ▼0.35 | 34.62 ▼0.45 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.27 ▼0.01 | 664.61 ▼3.59 | 51.84 ▼2.34 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.19 ▼0.17 | 93.23 ▼2.90 | 41.55 ▼1.01 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Screenshot #1 (LearnPress Prerequisite screenshot.) image missing
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Donate link: Invalid URI ("")
learnpress-prerequisites-courses/learnpress-prerequisites-courses.php Passed 13 tests
Analyzing the main PHP file in "LearnPress - Prerequisites Courses" version 4.0.6
63 characters long description:
Course you have to finish before you can enroll to this course.
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
Success! There were no dangerous files found in this plugin303 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 77 | 177 | 283 |
CSS | 1 | 7 | 0 | 20 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 2 | 12.50% |
▷ Private methods | 1 | 6.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.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
There were not PNG files found in your plugin