Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.30ms] Passed 4 tests
An overview of server-side resources used by LearnPress - Course Wishlist
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.54 ▼3.48 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.04 ▼1.80 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.82 ▼3.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.64 ▼20.82 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.78 ▼1.24 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
LearnPress - Course Wishlist: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.27 ▼1.02 | 1.70 ▼0.26 | 41.50 ▼7.41 |
Dashboard /wp-admin | 2,206 ▲18 | 4.82 ▼0.05 | 107.25 ▼1.60 | 39.94 ▼2.84 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.04 | 34.08 ▼3.16 | 34.53 ▼0.76 |
Add New Post /wp-admin/post-new.php | 1,535 ▼7 | 23.12 ▲4.87 | 673.99 ▲68.45 | 60.44 ▲8.01 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.09 | 97.91 ▼5.25 | 41.71 ▼1.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Trait 'LearnPress\\Helpers\\Singleton' not found in wp-content/plugins/learnpress-wishlist/inc/Elementor/WishListElementorHandler.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'LearnPress\\ExternalPlugin\\Elementor\\LPElementorWidgetBase' not found in wp-content/plugins/learnpress-wishlist/inc/Elementor/Widgets/CourseWishlistElementor.php:14
- > PHP Fatal error
Uncaught Error: Class 'LearnPress\\ExternalPlugin\\Elementor\\LPElementorControls' not found in wp-content/plugins/learnpress-wishlist/config/elementor/wishlist.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/learnpress-wishlist/inc/rest-api/class-rest-api.php:12
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: ""
- Screenshots: Add an image for screenshot #1 (LearnPress Prerequisite screenshot.)
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
learnpress-wishlist/learnpress-wishlist.php Passed 13 tests
The entry point to "LearnPress - Course Wishlist" version 4.0.6 is a PHP file that has certain tags in its header comment area
17 characters long description:
Wishlist feature.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin900 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 140 | 262 | 671 |
PO File | 2 | 22 | 24 | 82 |
CSS | 2 | 12 | 4 | 78 |
JavaScript | 2 | 2 | 1 | 69 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 23 | 71.88% |
▷ Protected methods | 7 | 21.88% |
▷ Private methods | 2 | 6.25% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin