Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.04ms] Passed 4 tests
A check of server-side resources used by BadgeOS Invite Codes Add-on
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.78 ▼6.58 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.71 ▼4.17 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.50 ▼2.73 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.27 ▼14.69 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.54 ▲0.15 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for BadgeOS Invite Codes Add-on
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 13.24 ▼0.94 | 2.24 ▲0.45 | 43.83 ▲1.86 |
Dashboard /wp-admin | 2,203 ▲18 | 5.83 ▲0.92 | 103.06 ▼2.48 | 39.75 ▼1.48 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.06 ▼0.00 | 39.52 ▼1.44 | 36.10 ▼0.58 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 17.97 ▼5.32 | 614.73 ▼30.25 | 68.56 ▲10.54 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.30 ▲0.10 | 97.66 ▼2.97 | 42.69 ▼0.13 |
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 did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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 | 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-invite-codes-add-on/includes/settings.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/badgeos-invite-codes-add-on/buddypress-invite-codes.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-invite-codes-add-on/includes/functions.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 22 tag instead of maximum 10
badgeos-invite-codes-add-on/buddypress-invite-codes.php 92% from 13 tests
The main PHP script in "BadgeOS Invite Codes Add-on" version 1.1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("badgeos-invite-codes-add-on.php" instead of "buddypress-invite-codes.php")
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
Everything looks great! No dangerous files found in this plugin982 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 271 | 260 | 784 |
PO File | 1 | 31 | 32 | 93 |
JavaScript | 1 | 18 | 3 | 69 |
CSS | 1 | 9 | 0 | 36 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/learningtimes_icon.png | 0.62KB | 0.29KB | ▼ 53.22% |