Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.41ms] Passed 4 tests
This is a short check of server-side resources used by Jetstash Connect
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.47 ▲2.31 |
Dashboard /wp-admin | 3.40 ▲0.06 | 57.63 ▼7.25 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 52.18 ▲0.55 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 88.18 ▼21.86 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.52 ▼1.08 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
jetstash_connect_version |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Jetstash Connect
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲125 | 13.44 ▼0.71 | 8.53 ▲6.51 | 42.00 ▼0.49 |
Dashboard /wp-admin | 2,214 ▲37 | 5.69 ▲0.03 | 85.17 ▼6.77 | 38.12 ▼7.16 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.01 ▲0.02 | 35.23 ▼9.95 | 35.69 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.30 ▲0.26 | 683.61 ▲36.34 | 57.80 ▲6.21 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.17 ▼0.06 | 100.59 ▼14.92 | 45.39 ▼0.61 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- jetstash_connect_version
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/jetstash-connect/jetstash-connect.php:11
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/jetstash-connect/tests/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jetstash-connect/admin/options.php:24
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/jetstash-connect/tests/testJetstashConnect.php:3
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/jetstash-connect/tests/bootstrap.php on line 6
- > PHP Fatal error
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 97% 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
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== jetstash-connect ===
)
jetstash-connect/jetstash-connect.php Passed 13 tests
This is the main PHP file of "Jetstash Connect" version 1.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
Dynamically pulls forms from Jetstash and integrates them via a shortcode into the theme.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin998 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 121 | 334 | 621 |
JavaScript | 5 | 37 | 42 | 139 |
Bourne Shell | 2 | 22 | 6 | 89 |
CSS | 2 | 13 | 2 | 52 |
Markdown | 1 | 30 | 0 | 49 |
JSON | 2 | 0 | 0 | 31 |
XML | 1 | 0 | 0 | 14 |
SVG | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 34.67 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 4 | 8.89% |
▷ Public methods | 21 | 46.67% |
▷ Protected methods | 4 | 8.89% |
▷ Private methods | 20 | 44.44% |
Functions | 1 | |
▷ Named functions | 1 | 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
5 PNG files occupy 0.31MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 94.33KB | 50.16KB | ▼ 46.83% |
assets/icon-256x256.png | 3.89KB | 1.20KB | ▼ 69.25% |
assets/icon-128x128.png | 2.74KB | 1.24KB | ▼ 54.59% |
img/jetstash-logo.png | 4.97KB | 4.05KB | ▼ 18.61% |
assets/banner-1544x500.png | 210.07KB | 121.93KB | ▼ 41.96% |