Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/snapplify-e-commerce/snapplify-ecommerce.php+67
require_once(wp-content/plugins/snapplify-e-commerce/../woocommerce/packages/action-scheduler/action-scheduler.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.73ms] Passed 4 tests
Server-side resources used by Snapplify E-Commerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.70 ▼1.07 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.63 ▼0.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.27 ▼3.36 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.22 ▼5.34 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.14 ▼1.13 |
Server storage [IO: ▲5.66MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 124 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Snapplify E-Commerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.57 ▼0.86 | 1.56 ▼0.18 | 41.11 ▼2.79 |
Dashboard /wp-admin | 2,209 ▲21 | 5.92 ▲0.84 | 101.55 ▼12.13 | 42.68 ▲0.37 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▼0.02 | 40.83 ▲0.52 | 38.58 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.20 ▲0.01 | 599.12 ▼103.22 | 54.84 ▼2.79 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▼0.04 | 96.66 ▼17.59 | 43.03 ▼4.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/snapplify-e-commerce/public/partials/snapplify-ecommerce-public-display.php
- > /wp-content/plugins/snapplify-e-commerce/admin/partials/snapplify-ecommerce-admin-display.php
- 38× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Uri\\Retrievers\\AbstractRetriever' not found in wp-content/plugins/snapplify-e-commerce/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/PredefinedArray.php:19
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/snapplify-e-commerce/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.php:20
- > PHP Fatal error
Uncaught Error: Interface 'JsonSchema\\UriRetrieverInterface' not found in wp-content/plugins/snapplify-e-commerce/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php:25
- > PHP Fatal error
Uncaught Error: Interface 'JsonSchema\\UriResolverInterface' not found in wp-content/plugins/snapplify-e-commerce/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php:20
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/snapplify-e-commerce/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php:22
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/snapplify-e-commerce/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php:20
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Exception\\RuntimeException' not found in wp-content/plugins/snapplify-e-commerce/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ValidationException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'League\\Pipeline\\PipelineBuilderInterface' not found in wp-content/plugins/snapplify-e-commerce/vendor/league/pipeline/src/PipelineBuilder.php:6
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/snapplify-e-commerce/vendor/justinrainbow/json-schema/demo/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/snapplify-e-commerce/vendor/justinrainbow/json-schema/demo/demo.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\BaseConstraint' not found in wp-content/plugins/snapplify-e-commerce/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: woocommerce, snapplify, products
snapplify-e-commerce/snapplify-ecommerce.php 85% from 13 tests
"Snapplify E-Commerce" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("snapplify-e-commerce.php" instead of "snapplify-ecommerce.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
It is important to fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/snapplify-e-commerce/vendor/bin/validate-json.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 84 | 1,169 | 2,500 | 5,090 |
JSON | 9 | 31 | 0 | 777 |
Markdown | 6 | 93 | 0 | 321 |
HTML | 1 | 8 | 1 | 93 |
PO File | 1 | 20 | 24 | 53 |
XML | 1 | 2 | 0 | 24 |
YAML | 3 | 2 | 3 | 12 |
JavaScript | 2 | 4 | 54 | 6 |
DOS Batch | 1 | 0 | 0 | 5 |
CSS | 2 | 0 | 8 | 0 |
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.43 |
Average class complexity | 11.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 11 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 2 | 3.64% |
▷ Concrete classes | 53 | 96.36% |
▷ Final classes | 0 | 0.00% |
Methods | 310 | |
▷ Static methods | 48 | 15.48% |
▷ Public methods | 237 | 76.45% |
▷ Protected methods | 35 | 11.29% |
▷ Private methods | 38 | 12.26% |
Functions | 10 | |
▷ Named functions | 4 | 40.00% |
▷ Anonymous functions | 6 | 60.00% |
Constants | 23 | |
▷ Global constants | 1 | 4.35% |
▷ Class constants | 22 | 95.65% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected