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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.92ms] Passed 4 tests
This is a short check of server-side resources used by myCred Retro
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 47.38 ▲3.34 |
Dashboard /wp-admin | 3.33 ▼0.01 | 53.89 ▼1.90 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.73 ▲3.36 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 98.08 ▼6.33 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.18 ▼2.78 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for myCred Retro
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲29 | 13.25 ▼0.92 | 1.72 ▼0.34 | 43.01 ▲0.61 |
Dashboard /wp-admin | 2,221 ▲27 | 5.83 ▲0.93 | 100.93 ▼3.53 | 41.82 ▲0.12 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.03 | 39.71 ▲5.71 | 35.31 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 22.98 ▲5.22 | 622.23 ▼45.97 | 48.75 ▼5.84 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.06 | 96.35 ▼19.12 | 43.59 ▼5.59 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 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 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mycred-retro/mycred-retro.php:98
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: loyalty, retroactive, reward, mycred, points
mycred-retro/mycred-retro.php 85% from 13 tests
Analyzing the main PHP file in "myCred Retro" version 1.2.3
Please make the necessary changes and fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "WP 4.8")
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
No dangerous file extensions were detected1,405 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 447 | 192 | 1,256 |
PO File | 1 | 59 | 82 | 149 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 20.75 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 23 | |
▷ Static methods | 13 | 56.52% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 9 | 75.00% |
▷ Class constants | 3 | 25.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin