Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▼5.19ms] Passed 4 tests
This is a short check of server-side resources used by SitePack Connect
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 40.38 ▲1.92 |
Dashboard /wp-admin | 3.55 ▲0.20 | 48.48 ▼12.13 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 47.63 ▼3.78 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 94.37 ▼5.05 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 37.16 ▲0.20 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
SitePack Connect: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲157 | 13.41 ▼0.94 | 7.56 ▲5.85 | 36.39 ▼4.64 |
Dashboard /wp-admin | 2,216 ▲42 | 5.62 ▼0.03 | 93.41 ▼2.94 | 42.33 ▼5.06 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.00 ▲0.06 | 41.04 ▼1.45 | 36.16 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,541 ▲5 | 23.18 ▼0.26 | 607.59 ▼67.26 | 56.38 ▲3.22 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.23 ▲0.02 | 95.88 ▼0.18 | 40.71 ▼3.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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 0% from 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sitepack-connect/sitepack-connect.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
include(): Failed opening 'SITEPACK_CONNECT_PLUGIN_DIRmodels/class.sitepack-stock-location.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/sitepack-connect/class.sitepack-connect.php on line 4
- > PHP Warning
Use of undefined constant SITEPACK_CONNECT_PLUGIN_DIR - assumed 'SITEPACK_CONNECT_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/sitepack-connect/services/class.sitepack-woocommerce.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'SITEPACK_CONNECT_PLUGIN_DIRservices/class.sitepack-woocommerce.php' (include_path='.:/usr/share/php') in wp-content/plugins/sitepack-connect/class.sitepack-connect-rest-api.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'SITEPACK_CONNECT_PLUGIN_DIRservices/class.sitepack-woocommerce.php' (include_path='.:/usr/share/php') in wp-content/plugins/sitepack-connect/class.sitepack-connect-stock.php on line 3
- > PHP Warning
Use of undefined constant SITEPACK_CONNECT_PLUGIN_DIR - assumed 'SITEPACK_CONNECT_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/sitepack-connect/class.sitepack-connect.php on line 4
- > PHP Warning
include(SITEPACK_CONNECT_PLUGIN_DIRmodels/class.sitepack-stock.php): failed to open stream: No such file or directory in wp-content/plugins/sitepack-connect/class.sitepack-connect.php on line 3
- > PHP Warning
require_once(SITEPACK_CONNECT_PLUGIN_DIRmodels/class.sitepack-category.php): failed to open stream: No such file or directory in wp-content/plugins/sitepack-connect/services/class.sitepack-woocommerce.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/sitepack-connect/views/sitepack_dashboard.php:4
- > PHP Warning
include(): Failed opening 'SITEPACK_CONNECT_PLUGIN_DIRmodels/class.sitepack-stock.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/sitepack-connect/class.sitepack-connect.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'SITEPACK_CONNECT_PLUGIN_DIRmodels/class.sitepack-category.php' (include_path='.:/usr/share/php') in wp-content/plugins/sitepack-connect/services/class.sitepack-woocommerce.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
5 plugin tags: sitepack, connect, cyclesoftware, wilmar, woocommerce
sitepack-connect/sitepack-connect.php 85% from 13 tests
The main PHP script in "SitePack Connect" version 1.2.3 is automatically included on every request by WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,485 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 222 | 137 | 1,201 |
CSS | 2 | 46 | 0 | 257 |
JavaScript | 1 | 4 | 0 | 27 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 6 | 8.45% |
▷ Public methods | 62 | 87.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 12.68% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon_full_120x120.png | 12.26KB | 5.21KB | ▼ 57.47% |
images/icon_full_32x32.png | 5.83KB | 1.72KB | ▼ 70.49% |
images/icon_full_48x48.png | 15.69KB | 2.25KB | ▼ 85.69% |
images/logo_transparent_45.png | 11.10KB | 2.74KB | ▼ 75.35% |