Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.60ms] Passed 4 tests
This is a short check of server-side resources used by Spocket ‑ US & EU Dropshipping
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.42 ▼5.59 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.34 ▼17.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.60 ▲0.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.93 ▼9.44 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.01 ▼1.58 |
Server storage [IO: ▲1.79MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 223 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Spocket ‑ US & EU Dropshipping: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.30 ▼1.07 | 4.63 ▲2.92 | 41.40 ▼1.38 |
Dashboard /wp-admin | 2,203 ▲15 | 5.90 ▲1.02 | 101.54 ▼21.07 | 38.37 ▼5.31 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.04 | 38.89 ▲1.24 | 35.53 ▲3.03 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.66 ▼0.61 | 614.44 ▲6.00 | 48.18 ▼7.35 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.19 ▼0.03 | 97.36 ▼4.40 | 42.81 ▼2.04 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/spocket/vendor/nategood/httpful/examples/github.php
- > /wp-content/plugins/spocket/vendor/nategood/httpful/examples/showclix.php
- > /wp-content/plugins/spocket/vendor/nategood/httpful/tests/bootstrap-server.php
- 132× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/spocket/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/spocket/vendor/nategood/httpful/src/Httpful/Handlers/JsonHandler.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/spocket/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/spocket/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/spocket/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/spocket/vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/spocket/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/spocket/vendor/composer/installers/tests/Composer/Installers/Test/SiteDirectInstallerTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/spocket/vendor/composer/installers/tests/Composer/Installers/Test/DokuWikiInstallerTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/spocket/vendor/composer/installers/tests/Composer/Installers/Test/PiwikInstallerTest.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Contributors: Plugin contributors not specified
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in spocket/assets to your readme.txt
spocket/index.php 92% from 13 tests
The primary PHP file in "Spocket ‑ US & EU Dropshipping" version 1.7.9 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("spocket.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin23,593 lines of code in 204 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 9 | 1 | 0 | 15,258 |
PHP | 163 | 1,228 | 2,872 | 6,534 |
Vuejs Component | 6 | 71 | 5 | 785 |
Markdown | 5 | 144 | 0 | 459 |
JavaScript | 7 | 15 | 8 | 227 |
YAML | 5 | 17 | 0 | 138 |
Bourne Shell | 2 | 29 | 19 | 88 |
XML | 3 | 8 | 3 | 69 |
SVG | 1 | 0 | 1 | 14 |
TOML | 1 | 4 | 0 | 11 |
CSS | 2 | 8 | 1 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 3.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 150 | |
▷ Abstract classes | 2 | 1.33% |
▷ Concrete classes | 148 | 98.67% |
▷ Final classes | 1 | 0.68% |
Methods | 458 | |
▷ Static methods | 57 | 12.45% |
▷ Public methods | 382 | 83.41% |
▷ Protected methods | 50 | 10.92% |
▷ Private methods | 26 | 5.68% |
Functions | 21 | |
▷ Named functions | 2 | 9.52% |
▷ Anonymous functions | 19 | 90.48% |
Constants | 48 | |
▷ Global constants | 5 | 10.42% |
▷ Class constants | 43 | 89.58% |
▷ Public constants | 43 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/img/white-logo.png | 3.81KB | 2.01KB | ▼ 47.17% |
dist/images/white-logo.png | 3.81KB | 2.01KB | ▼ 47.17% |