Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.51ms] Passed 4 tests
This is a short check of server-side resources used by Coursecheck
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 45.35 ▲4.05 |
Dashboard /wp-admin | 3.42 ▲0.07 | 51.66 ▼15.72 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 56.82 ▲7.14 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 89.70 ▼15.14 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 40.93 ▲0.77 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_coursecheck_recent_reviews |
theysaidso_admin_options |
widget_recent-posts |
widget_coursecheck_widget |
Browser metrics Passed 4 tests
Coursecheck: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.79 ▲0.44 | 1.69 ▼0.44 | 44.75 ▼0.04 |
Dashboard /wp-admin | 2,198 ▲30 | 5.66 ▲0.12 | 90.63 ▲0.07 | 42.16 ▼5.61 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.05 | 38.78 ▲3.47 | 34.84 ▼3.15 |
Add New Post /wp-admin/post-new.php | 6,230 ▲4,702 | 19.14 ▼4.23 | 929.27 ▲222.70 | 51.98 ▼5.31 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.23 ▼0.03 | 109.62 ▼5.15 | 47.05 ▼0.24 |
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
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_coursecheck_recent_reviews
- widget_coursecheck_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: coursecheckcom, courses, course reviews, coursecheck
coursecheck/coursecheck.php Passed 13 tests
The entry point to "Coursecheck" version 1.10.11 is a PHP file that has certain tags in its header comment area
88 characters long description:
Reviews widget for training providers using coursecheck.com to collect student feedback.
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
Good job! No executable or dangerous file extensions detected884 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 62 | 115 | 447 |
CSS | 2 | 46 | 7 | 412 |
JavaScript | 2 | 0 | 1 | 25 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 68.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 31.58% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/icon-quote.png | 1.14KB | 0.27KB | ▼ 76.03% |