Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.84ms] Passed 4 tests
A check of server-side resources used by Katapult
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.46 ▼5.24 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.89 ▲2.13 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 45.61 ▼15.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.32 ▼8.87 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.21 ▲2.46 |
Server storage [IO: ▲1.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Katapult
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.48 ▲0.19 | 1.73 ▼0.03 | 40.64 ▼0.67 |
Dashboard /wp-admin | 2,206 ▲15 | 4.84 ▼0.04 | 111.77 ▲7.06 | 43.04 ▼4.20 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.03 ▲0.06 | 38.99 ▼6.03 | 35.75 ▼7.87 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.23 ▲0.07 | 659.00 ▲67.82 | 60.11 ▲1.20 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▲0.02 | 94.05 ▲0.45 | 39.50 ▼4.39 |
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 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Login to your wordpress admin portal Go to > WooCommerce > select Settings screenshot-1.(png|jpg|jpeg|gif).), #2 (Katapult, confirm that the environment is pointed towards sandbox for development and testing. screenshot-2.(png|jpg|jpeg|gif).), #3 (Katapult order cancellation screenshot-3.(png|jpg|jpeg|gif).), #4 (Katapult items cancellation screenshot-4.(png|jpg|jpeg|gif).), #5 (Katapult mark order to complete status screenshot-5.(png|jpg|jpeg|gif).), #6 (Mark bulk items to leasable and non leasable screenshot-6.(png|jpg|jpeg|gif).), #7 (Mark single item leasable using product edit. screenshot-7.(png|jpg|jpeg|gif).)
katapult/katapult.php 85% from 13 tests
The main file in "Katapult" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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 plugin752 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 156 | 236 | 672 |
JavaScript | 4 | 2 | 6 | 57 |
Markdown | 2 | 11 | 0 | 23 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 39.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 39 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.14% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 1.29MB with 0.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/Screenshot-1.png | 50.43KB | 24.24KB | ▼ 51.94% |
assets/icon-128x128.png | 2.19KB | 1.20KB | ▼ 45.22% |
assets/icon-256x256.png | 4.29KB | 2.17KB | ▼ 49.31% |
assets/Screenshot-2.png | 31.09KB | 15.58KB | ▼ 49.89% |
assets/Screenshot-6.png | 290.85KB | 85.12KB | ▼ 70.73% |