Benchmarks
Plugin footprint 65% 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.35MB] [CPU: ▲3.66ms] Passed 4 tests
An overview of server-side resources used by Piwi Warehouse
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 41.02 ▲7.22 |
Dashboard /wp-admin | 3.66 ▲0.36 | 51.48 ▲6.43 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 50.18 ▲4.68 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.38 | 85.58 ▼1.20 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 38.42 ▲4.72 |
Manage Capabilities /wp-admin/admin.php?page=pwwh_capabilities | 3.90 | 38.22 |
Consistency Tool /wp-admin/admin.php?page=pwwh_consistency | 3.55 | 33.56 |
Piwi Warehouse /wp-admin/admin.php?page=pwwh_main | 3.54 | 31.57 |
Server storage [IO: ▲0.75MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 130 new files
Database: 1 new table, 7 new options
New tables |
---|
pwwh_movement_history |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
pwwh_caps_rev |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Piwi Warehouse: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲194 | 13.65 ▼0.64 | 1.64 ▼0.28 | 43.69 ▼3.30 |
Dashboard /wp-admin | 2,386 ▲206 | 5.49 ▼0.16 | 86.88 ▲1.47 | 37.23 ▼2.46 |
Posts /wp-admin/edit.php | 2,291 ▲191 | 2.67 ▲0.65 | 37.06 ▲1.61 | 34.49 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,870 ▲344 | 25.45 ▲2.46 | 588.73 ▼62.70 | 36.50 ▼15.70 |
Media Library /wp-admin/upload.php | 1,591 ▲188 | 4.91 ▲0.72 | 103.28 ▲3.86 | 42.66 ▼0.84 |
Manage Capabilities /wp-admin/admin.php?page=pwwh_capabilities | 4,141 | 2.23 | 33.70 | 52.14 |
Consistency Tool /wp-admin/admin.php?page=pwwh_consistency | 948 | 2.32 | 29.22 | 23.97 |
Piwi Warehouse /wp-admin/admin.php?page=pwwh_main | 1,061 | 2.32 | 30.55 | 25.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- pwwh_movement_history
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- pwwh_caps_rev
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- 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
The smoke test was a success, however most plugin functionality was not tested
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
- 112× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/piwi-warehouse/core/items/item-hook.php:85
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/piwi-warehouse/core/movements/movement-ajax.php:51
- > PHP Warning
Use of undefined constant PWWH_PREFIX - assumed 'PWWH_PREFIX' (this will throw an Error in a future version of PHP) in wp-content/plugins/piwi-warehouse/core/movements/movement.php on line 14
- > PHP Warning
Use of undefined constant PWWH_LIB_DIR - assumed 'PWWH_LIB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/piwi-warehouse/lib/ui/ui-flexboxes.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/piwi-warehouse/admin/_common/common-hook.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/piwi-warehouse/admin/caps/caps-hook.php:66
- > PHP Warning
Use of undefined constant PWWH_PREFIX - assumed 'PWWH_PREFIX' (this will throw an Error in a future version of PHP) in wp-content/plugins/piwi-warehouse/admin/_main/main.php on line 19
- > PHP Warning
Use of undefined constant PWWH_ADMIN_DIR - assumed 'PWWH_ADMIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/piwi-warehouse/admin/admin.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/piwi-warehouse/core/movements/movement-hook.php:94
- > PHP Fatal error
require_once(): Failed opening required 'PWWH_CORE_DIR/core-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/piwi-warehouse/core/core.php on line 40
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Overview of the main Warehouse menu), #2 (An example of a Movement), #3 (Screenshot of the Capability Engine)
piwi-warehouse/piwi-warehouse.php Passed 13 tests
"Piwi Warehouse" version 3.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
18 characters long description:
Warehouse manager.
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
There were no executable files found in this plugin13,012 lines of code in 105 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 65 | 2,154 | 5,692 | 9,578 |
JavaScript | 30 | 593 | 1,176 | 2,184 |
CSS | 10 | 266 | 233 | 1,250 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 12.12 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 94.74% |
▷ Protected methods | 1 | 2.63% |
▷ Private methods | 1 | 2.63% |
Functions | 316 | |
▷ Named functions | 315 | 99.68% |
▷ Anonymous functions | 1 | 0.32% |
Constants | 189 | |
▷ Global constants | 189 | 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
No PNG files were detected