Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲4.31MB] [CPU: ▲28.85ms] Passed 4 tests
An overview of server-side resources used by All in One Invite Codes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.96 ▲4.50 | 63.89 ▲25.19 |
Dashboard /wp-admin | 7.98 ▲4.67 | 85.05 ▲37.44 |
Posts /wp-admin/edit.php | 7.98 ▲4.62 | 76.57 ▲30.08 |
Add New Post /wp-admin/post-new.php | 9.34 ▲3.45 | 126.08 ▲25.33 |
Media Library /wp-admin/upload.php | 7.98 ▲4.75 | 70.47 ▲34.79 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 7.98 | 61.85 |
Server storage [IO: ▲2.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 229 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
fs_accounts |
fs_active_plugins |
fs_debug_mode |
Browser metrics Passed 4 tests
Checking browser requirements for All in One Invite Codes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲55 | 14.76 ▲0.55 | 1.74 ▼0.43 | 31.97 ▼13.17 |
Dashboard /wp-admin | 2,244 ▲63 | 4.98 ▼0.68 | 95.50 ▼8.84 | 42.18 ▼3.68 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 2.40 ▲0.39 | 37.21 ▼3.09 | 32.83 ▼5.40 |
Add New Post /wp-admin/post-new.php | 1,563 ▲37 | 23.14 ▲0.26 | 659.25 ▲19.69 | 35.06 ▼16.70 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.53 ▲0.36 | 102.96 ▲4.05 | 45.34 ▼1.48 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,107 | 2.08 | 27.83 | 29.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/all-in-one-invite-codes/includes/resources/freemius/includes/class-freemius.php+127
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- fs_debug_mode
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- fs_accounts
- theysaidso_admin_options
- fs_active_plugins
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Manage Invite Codes), #2 (Create new Invite Codes), #3 (General Settings), #4 (Mail Templates), #5 (List Codes on the Frontend), #6 (eMail Form)
all-in-one-invite-codes/all-in-one-invite-codes.php 92% from 13 tests
"All in One Invite Codes" version 1.1.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)
Code Analysis 97% from 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 detected11,539 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 132 | 1,818 | 927 | 8,962 |
JavaScript | 12 | 352 | 278 | 2,064 |
PO File | 2 | 102 | 106 | 319 |
CSS | 16 | 26 | 0 | 159 |
XML | 1 | 0 | 0 | 19 |
JSON | 1 | 0 | 0 | 16 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 85.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,296 | |
▷ Static methods | 206 | 15.90% |
▷ Public methods | 896 | 69.14% |
▷ Protected methods | 17 | 1.31% |
▷ Private methods | 383 | 29.55% |
Functions | 159 | |
▷ Named functions | 159 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 150 | |
▷ Global constants | 103 | 68.67% |
▷ Class constants | 47 | 31.33% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/resources/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/resources/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |