Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.30ms] Passed 4 tests
Server-side resources used by myCred - Gutenberg Blocks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.08 ▼3.54 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.99 ▼10.12 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.76 ▼1.40 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.13 ▼10.14 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 35.25 ▼1.29 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for myCred - Gutenberg Blocks
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 13.31 ▼1.44 | 1.66 ▼0.17 | 41.84 ▼7.74 |
Dashboard /wp-admin | 2,227 ▲36 | 5.90 ▲1.02 | 109.79 ▼4.67 | 39.87 ▼6.67 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.02 ▲0.02 | 37.78 ▲3.30 | 33.02 ▼3.27 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.51 ▲0.27 | 635.12 ▲48.28 | 48.51 ▼2.83 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.23 ▲0.05 | 100.00 ▲4.84 | 43.78 ▲2.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
- 28× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycred-blocks/blocks/mycred-leaderboard/mycred-leaderboard.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycred-blocks/blocks/mycred-my-ranks/mycred-my-ranks.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycred-blocks/blocks/mycred-video/mycred-video.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycred-blocks/blocks/mycred-badges/mycred-badges.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycred-blocks/blocks/mycred-link/mycred-link.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycred-blocks/blocks/mycred-total-since/mycred-total-since.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mycred-blocks/includes/mycred-gutenberg-functions.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycred-blocks/blocks/mycred-buy/mycred-buy.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycred-blocks/blocks/mycred-transfer/mycred-transfer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycred-blocks/blocks/mycred-users-of-rank/mycred-users-of-rank.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: A description for screenshot #1 is missing in mycred-blocks/assets to your readme.txt
mycred-blocks/mycred-blocks.php 92% from 13 tests
"myCred - Gutenberg Blocks" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress 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")
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
No dangerous file extensions were detected3,666 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 27 | 148 | 25 | 3,130 |
PHP | 29 | 187 | 35 | 536 |
PHP code Passed 2 tests
An overview 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.21 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin