Benchmarks
Plugin footprint 82% 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.01MB] [CPU: ▼7.19ms] Passed 4 tests
An overview of server-side resources used by POFW Pizza Toppings
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.27 ▼1.57 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.96 ▼15.99 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.93 ▼9.38 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 108.49 ▼1.83 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.81 ▲1.05 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/pofw-pizza-toppings/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for POFW Pizza Toppings
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.24 ▼1.32 | 1.81 ▼0.65 | 43.73 ▲0.72 |
Dashboard /wp-admin | 2,218 ▲12 | 5.82 ▲0.02 | 98.42 ▼5.08 | 39.51 ▼5.47 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.00 ▼0.05 | 37.07 ▼3.05 | 31.42 ▼5.88 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.10 ▼0.23 | 590.41 ▼34.10 | 59.00 ▲2.60 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.24 ▲0.05 | 101.82 ▼2.05 | 42.39 ▼6.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: product options, pizza toppings
pofw-pizza-toppings/pofw-pizza-toppings.php Passed 13 tests
The entry point to "POFW Pizza Toppings" version 1.0.0 is a PHP file that has certain tags in its header comment area
64 characters long description:
Displays product options with special layout for pizza toppings.
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
No dangerous file extensions were detected705 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 239 | 20 | 645 |
JavaScript | 2 | 34 | 0 | 55 |
CSS | 2 | 4 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review 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.36 |
Average class complexity | 7.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 65 | |
▷ Static methods | 4 | 6.15% |
▷ Public methods | 61 | 93.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.15% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
view/adminhtml/web/product/edit/option_sort_order.png | 85.77KB | 23.03KB | ▼ 73.14% |
view/adminhtml/web/product/edit/checkbox_option.png | 73.22KB | 19.61KB | ▼ 73.22% |