Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/shoparize/shoparize.php+16
Uncaught Error: Call to undefined function wp_get_active_network_plugins() in wp-content/plugins/shoparize/shoparize.php:16
Stack trace:
#0 wp-admin/includes/plugin.php(2318): include_once()
#1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.38ms] Passed 4 tests
A check of server-side resources used by Shoparize Partner Plugin for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.54 ▼7.29 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.54 ▼15.24 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.10 ▼0.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.61 ▼12.13 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.81 ▼2.87 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Shoparize Partner Plugin for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.38 ▼1.00 | 1.79 ▲0.12 | 40.29 ▼0.51 |
Dashboard /wp-admin | 2,206 ▲15 | 4.88 ▼0.01 | 96.34 ▼6.45 | 37.88 ▼0.25 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▲0.00 | 36.54 ▼2.18 | 35.35 ▲2.09 |
Add New Post /wp-admin/post-new.php | 1,533 ▲9 | 23.31 ▲0.13 | 671.81 ▲62.55 | 55.41 ▲0.53 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.17 ▼0.05 | 94.51 ▼0.60 | 40.11 ▼1.94 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shoparize/shoparize-admin.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/shoparize/shoparize.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: shoparize, affiliate window, affiliate, kiesproduct, advertiser...
shoparize/shoparize.php Passed 13 tests
Analyzing the main PHP file in "Shoparize Partner Plugin for WooCommerce" version 1.0.3
17 characters long description:
Shoparize partner
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin126 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 24 | 11 | 126 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 7 | |
▷ Named functions | 7 | 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.32MB with 0.25MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screnshot-001.png | 309.78KB | 52.52KB | ▼ 83.05% |
assets/icon-128x128.png | 16.22KB | 4.15KB | ▼ 74.41% |