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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.76ms] Passed 4 tests
Server-side resources used by myCred Credly
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.32 ▲1.01 |
Dashboard /wp-admin | 3.33 ▼0.02 | 43.23 ▼19.16 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 53.92 ▲6.60 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.47 ▼7.73 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.47 ▲2.85 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for myCred Credly
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.23 ▼1.17 | 6.09 ▲4.41 | 42.68 ▼6.45 |
Dashboard /wp-admin | 2,206 ▲21 | 5.86 ▼0.05 | 96.96 ▼19.73 | 39.71 ▼7.57 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.06 | 39.71 ▲3.92 | 35.34 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.03 ▼0.24 | 642.89 ▼39.79 | 51.49 ▼5.95 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.20 ▲0.02 | 93.83 ▼15.68 | 40.07 ▼8.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mycred-credly/mycred-credly.php:100
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #6 (**Earned Badge** - Earned Badge will automatically sent to Credly.)
mycred-credly/mycred-credly.php 77% from 13 tests
The main PHP script in "myCred Credly" version 1.2.1 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 187 characters long)
- Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "WP 4.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,129 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 227 | 128 | 805 |
JavaScript | 1 | 39 | 14 | 226 |
CSS | 1 | 20 | 11 | 98 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 34.33 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 39 | |
▷ Static methods | 1 | 2.56% |
▷ Public methods | 36 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.69% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/default-badge.png | 18.92KB | 7.49KB | ▼ 60.41% |