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.07MB] [CPU: ▼0.85ms] Passed 4 tests
This is a short check of server-side resources used by Mini Course Generator | Embed mini-courses and interactive content
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 43.00 ▲2.82 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.34 ▼3.52 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.37 ▲1.10 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 83.46 ▼3.79 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 43.07 ▲7.94 |
Server storage [IO: ▲0.38MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mini Course Generator | Embed mini-courses and interactive content
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲154 | 13.39 ▼1.23 | 8.86 ▲7.20 | 39.74 ▼1.24 |
Dashboard /wp-admin | 2,214 ▲37 | 5.64 ▲0.07 | 94.36 ▲3.15 | 42.06 ▼2.35 |
Posts /wp-admin/edit.php | 2,116 ▲19 | 2.00 ▲0.04 | 38.94 ▲2.34 | 29.88 ▼3.83 |
Add New Post /wp-admin/post-new.php | 1,703 ▲177 | 25.07 ▲1.89 | 600.20 ▼79.06 | 52.59 ▼10.34 |
Media Library /wp-admin/upload.php | 1,485 ▲88 | 4.21 ▲0.05 | 97.74 ▼0.17 | 41.96 ▼3.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mini-course-generator/admin/partials/mcg-admin-display.php
- > /wp-content/plugins/mini-course-generator/public/partials/mcg-public-display.php
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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI found ("-")
- Screenshots: Add an image for screenshot #1 (Engaging experience for your audience.)
mini-course-generator/mcg.php 85% from 13 tests
This is the main PHP file of "Mini Course Generator | Embed mini-courses and interactive content" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mini-course-generator.php" instead of "mcg.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin486 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 150 | 551 | 273 |
JavaScript | 2 | 48 | 39 | 160 |
CSS | 2 | 9 | 26 | 53 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 20 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 23.08% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/logo.png | 49.63KB | 23.05KB | ▼ 53.56% |
admin/images/love-wp.png | 23.39KB | 12.04KB | ▼ 48.52% |