Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.20ms] Passed 4 tests
Server-side resources used by Molongui Deals, Sales Promotions and Upsells For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.82 ▼7.14 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.43 ▼3.74 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.34 ▲2.59 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.06 ▼8.52 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 37.45 ▲4.99 |
Server storage [IO: ▲2.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 274 new files
Database: no new tables, 8 new options
New WordPress options |
---|
molongui_bump_offer_db_version |
molongui_bump_offer_options |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Molongui Deals, Sales Promotions and Upsells For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲16 | 14.25 ▼0.11 | 1.69 ▼0.61 | 44.28 ▲0.74 |
Dashboard /wp-admin | 2,208 ▲28 | 5.62 ▲0.04 | 85.29 ▼4.51 | 39.66 ▼0.93 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.08 ▲0.10 | 36.10 ▼3.77 | 32.14 ▼3.01 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 22.98 ▼0.09 | 637.22 ▼2.40 | 57.84 ▲4.50 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.22 ▲0.02 | 103.74 ▲3.09 | 44.30 ▲3.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- molongui_bump_offer_db_version
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- molongui_bump_offer_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 45× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: defaults in wp-content/plugins/molongui-bump-offer/views/bump/html-layout-1.php on line 5
- > PHP Notice
Undefined variable: box_no_bg in wp-content/plugins/molongui-bump-offer/views/bump/html-layout-1.php on line 67
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/molongui-bump-offer/views/bump/html-admin-settings-metabox.php:14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/molongui-bump-offer/views/bump/html-layout-1.php on line 3
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/molongui-bump-offer/views/bump/html-layout-1.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function wpautop() in wp-content/plugins/molongui-bump-offer/views/bump/html-layout-1.php:139
- > PHP Notice
Undefined variable: defaults in wp-content/plugins/molongui-bump-offer/views/bump/html-layout-1.php on line 97
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/molongui-bump-offer/views/bump/html-layout-1.php on line 5
- > PHP Notice
Undefined variable: is_preview in wp-content/plugins/molongui-bump-offer/views/bump/html-layout-1.php on line 5
- > PHP Notice
Undefined variable: lead_arrow_icon in wp-content/plugins/molongui-bump-offer/views/bump/html-layout-1.php on line 70
- > PHP Notice
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: There are too many tags (18 tag instead of maximum 10)
molongui-bump-offer/molongui-bump-offer.php 92% from 13 tests
The primary PHP file in "Molongui Deals, Sales Promotions and Upsells For WooCommerce" version 2.4.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7.0" instead of "5.2.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin22,579 lines of code in 173 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 892 | 940 | 12,099 |
JavaScript | 22 | 1,147 | 783 | 5,045 |
PO File | 7 | 1,722 | 2,517 | 4,368 |
SVG | 1 | 0 | 0 | 565 |
CSS | 26 | 64 | 53 | 426 |
XML | 2 | 0 | 0 | 55 |
Markdown | 2 | 7 | 0 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 32.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 2 | 7.69% |
▷ Concrete classes | 24 | 92.31% |
▷ Final classes | 1 | 4.17% |
Methods | 256 | |
▷ Static methods | 9 | 3.52% |
▷ Public methods | 125 | 48.83% |
▷ Protected methods | 102 | 39.84% |
▷ Private methods | 29 | 11.33% |
Functions | 232 | |
▷ Named functions | 217 | 93.53% |
▷ Anonymous functions | 15 | 6.47% |
Constants | 94 | |
▷ Global constants | 6 | 6.38% |
▷ Class constants | 88 | 93.62% |
▷ Public constants | 88 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
29 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
customizer/common/img/text-align/text-align-left.png | 0.32KB | 0.18KB | ▼ 43.64% |
customizer/common/img/font-style/font-style-overline.png | 0.44KB | 0.24KB | ▼ 45.31% |
customizer/common/img/font-case/box-tabs-position-top-full.png | 0.63KB | 0.35KB | ▼ 44.34% |
customizer/common/img/font-style/font-style-normal.png | 0.40KB | 0.25KB | ▼ 37.75% |
customizer/common/img/font-style/font-style-underline.png | 0.41KB | 0.22KB | ▼ 45.95% |