Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.35ms] Passed 4 tests
This is a short check of server-side resources used by myCred Badgr Integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 48.78 ▲11.10 |
Dashboard /wp-admin | 3.32 ▼0.02 | 47.86 ▼15.74 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.17 ▼1.99 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.69 ▼14.22 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.19 ▼1.44 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for myCred Badgr Integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲129 | 13.33 ▼0.95 | 8.71 ▲6.97 | 43.18 ▲0.96 |
Dashboard /wp-admin | 2,200 ▲25 | 5.63 ▼0.06 | 90.30 ▼22.58 | 40.41 ▼5.28 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.00 ▲0.05 | 41.62 ▲1.70 | 34.35 ▼4.96 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.40 ▼0.04 | 697.29 ▼12.00 | 65.58 ▼4.37 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.20 ▼0.00 | 101.66 ▼0.27 | 43.63 ▲0.51 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
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
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
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/mycred-badgr-achievement-badge/includes/classes/mycred_badgr_user.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mycred-badgr-achievement-badge/mycred-badgr.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mycred-badgr-achievement-badge/includes/shortcodes/mycred-badgr-login.php:59
- > PHP Fatal error
Uncaught Error: Class 'myCRED_Module' not found in wp-content/plugins/mycred-badgr-achievement-badge/includes/badgr-settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: mycred, badgr, achievement, open badges, badges
mycred-badgr-achievement-badge/mycred-badgr.php 69% from 13 tests
Analyzing the main PHP file in "myCred Badgr Integration" version 1.0.2
The following require your attention:
- 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 an invalid folder, "/lang" does not exist
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("mycred-badgr-achievement-badge.php" instead of "mycred-badgr.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin820 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 216 | 322 | 636 |
JavaScript | 2 | 40 | 5 | 184 |
PHP code Passed 2 tests
An overview 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.28 |
Average class complexity | 11.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 9 | 23.08% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin