Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.42ms] Passed 4 tests
Server-side resources used by myCred Badge Editor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.87 ▼1.68 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.24 ▼15.06 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.49 ▼0.73 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.31 ▼12.22 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.93 ▲3.46 |
Server storage [IO: ▲2.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 291 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
myCred Badge Editor: 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,829 ▲83 | 13.22 ▼0.93 | 2.04 ▲0.18 | 45.44 ▲7.38 |
Dashboard /wp-admin | 2,210 ▲25 | 4.85 ▼0.06 | 102.60 ▼3.09 | 39.85 ▼3.00 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.04 | 40.45 ▼1.68 | 35.90 ▼2.45 |
Add New Post /wp-admin/post-new.php | 1,518 ▲4 | 17.54 ▼0.07 | 654.01 ▼16.25 | 44.38 ▼5.16 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.28 ▲0.07 | 102.53 ▼5.31 | 43.21 ▲0.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function set_user_setting() in wp-content/plugins/mycred-badge-editor/includes/class-mycred-badge-editor.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycred-badge-editor/mycred-badge-editor.php:51
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8, #9 in mycred-badge-editor/assets to your readme.txt
mycred-badge-editor/mycred-badge-editor.php 85% from 13 tests
The primary PHP file in "myCred Badge Editor" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "WP 4.8")
- Domain Path: The domain path points to a folder that does not exist ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin4,298 lines of code in 285 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 277 | 5 | 94 | 3,844 |
JSON | 2 | 0 | 0 | 312 |
PHP | 3 | 69 | 113 | 138 |
CSS | 1 | 0 | 0 | 2 |
HTML | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 1 | 1 |
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.38 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/build/logo192.png | 1.70KB | 1.81KB | 0.00% |
assets/build/logo512.png | 6.48KB | 7.24KB | 0.00% |