Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.68ms] Passed 4 tests
Analyzing server-side resources used by Simple Inventory
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.30 ▼0.90 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.69 ▼4.45 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 50.06 ▲0.26 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.93 ▼25.62 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.67 ▲2.74 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=si_good | 3.28 | 38.79 |
Add New /wp-admin/post-new.php?post_type=si_good | 3.37 | 58.38 |
All Goods / Products /wp-admin/edit.php?post_type=si_good | 3.34 | 37.85 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
category_children |
Browser metrics Passed 4 tests
Simple Inventory: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 14.47 ▼0.09 | 1.67 ▼0.05 | 39.49 ▼1.00 |
Dashboard /wp-admin | 2,240 ▲52 | 4.86 ▼0.03 | 96.69 ▼16.12 | 40.07 ▼7.26 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.02 ▼0.02 | 39.84 ▼1.62 | 36.22 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,568 ▲49 | 18.03 ▼5.31 | 628.67 ▼8.00 | 54.04 ▼1.49 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.19 ▼0.04 | 98.46 ▼4.62 | 43.00 ▼3.26 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=si_good | 1,477 | 2.14 | 26.97 | 33.38 |
Add New /wp-admin/post-new.php?post_type=si_good | 1,850 | 3.94 | 61.63 | 33.79 |
All Goods / Products /wp-admin/edit.php?post_type=si_good | 1,176 | 1.95 | 32.62 | 32.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- category_children
Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-inventory/simple-inventory.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: management, storage, inventory, goods, simple
simple-inventory/simple-inventory.php 92% from 13 tests
The entry point to "Simple Inventory" version 0.11 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0" instead of "3.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin174 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 65 | 46 | 174 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected