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
Installer ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▼2.95ms] Passed 4 tests
A check of server-side resources used by GetPaid > Item Inventory
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 40.50 ▲0.24 |
Dashboard /wp-admin | 3.76 ▲0.45 | 51.01 ▲0.43 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 50.85 ▲1.08 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 84.61 ▼13.11 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 37.78 ▲0.63 |
Install Plugins /wp-admin/plugins.php?page=getpaid-item-inventory-install-plugins | 3.78 | 33.95 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
GetPaid > Item Inventory: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲80 | 14.40 ▲0.11 | 1.94 ▲0.49 | 36.77 ▼9.13 |
Dashboard /wp-admin | 2,225 ▲45 | 5.68 ▲0.06 | 84.23 ▼1.80 | 39.57 ▼4.68 |
Posts /wp-admin/edit.php | 2,136 ▲39 | 2.18 ▲0.15 | 36.62 ▲1.61 | 38.15 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.59 ▲0.49 | 661.58 ▼25.18 | 52.85 ▼6.21 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.31 ▲0.15 | 102.78 ▼12.15 | 49.02 ▲2.90 |
Install Plugins /wp-admin/plugins.php?page=getpaid-item-inventory-install-plugins | 974 | 2.06 | 25.11 | 28.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/getpaid-item-inventory/includes/class-tgm-plugin-activation.php:2109
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: checkout, stock, shop, inventory, selling
getpaid-item-inventory/plugin.php 85% from 13 tests
The primary PHP file in "GetPaid > Item Inventory" version 1.0.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "4.9")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("getpaid-item-inventory.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,988 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 798 | 2,163 | 2,592 |
PO File | 1 | 136 | 146 | 394 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 33.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 160 | |
▷ Static methods | 7 | 4.38% |
▷ Public methods | 133 | 83.12% |
▷ Protected methods | 24 | 15.00% |
▷ Private methods | 3 | 1.88% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin