Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.65MB] [CPU: ▼21.26ms] Passed 4 tests
A check of server-side resources used by PayPal Cart by Human80
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 42.73 ▼2.62 |
Dashboard /wp-admin | 3.39 ▲0.01 | 48.80 ▼17.01 |
Posts /wp-admin/edit.php | 3.51 ▲0.11 | 50.74 ▼1.71 |
Add New Post /wp-admin/post-new.php | 3.24 ▼2.69 | 36.64 ▼62.69 |
Media Library /wp-admin/upload.php | 3.32 ▲0.05 | 37.16 ▼2.73 |
PayPal Cart /wp-admin/options-general.php?page=paypal-cart | 3.26 | 32.66 |
Server storage [IO: ▲0.26MB] [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: 6 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_H80cart_data |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
H80cart_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
PayPal Cart by Human80: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.23 ▼0.42 | 1.85 ▼0.08 | 45.17 ▲1.19 |
Dashboard /wp-admin | 2,202 ▲25 | 5.60 ▼0.07 | 84.54 ▼7.34 | 38.85 ▼6.44 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.03 ▲0.05 | 38.61 ▲4.55 | 33.34 ▼4.67 |
Add New Post /wp-admin/post-new.php | 6,267 ▲4,730 | 25.94 ▲7.75 | 907.77 ▲251.30 | 63.32 ▼9.40 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.18 ▲0.01 | 96.48 ▼5.45 | 45.03 ▲0.63 |
PayPal Cart /wp-admin/options-general.php?page=paypal-cart | 959 | 1.96 | 24.06 | 25.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_H80cart_data
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- H80cart_version
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 19 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=paypal-cart
- > Notice in wp-content/plugins/paypal-cart/h80_cart.php+79
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paypal-cart/h80_cart.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== paypal-cart ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (This is a shot that includes both the main setting screen -- where you enter your Paypal email address, choose a local currency, or modify the css -- and shows an inset of the metabox available when authoring a post.), #2 (This is how the default Paypal Cart shows up in a blog post.)
paypal-cart/h80_cart.php 92% from 13 tests
The main PHP file in "PayPal Cart by Human80" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
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 ("paypal-cart.php" instead of "h80_cart.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected297 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 56 | 258 |
CSS | 1 | 0 | 0 | 39 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
2 PNG files occupy 0.24MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
blog-post.png | 154.88KB | 50.97KB | ▼ 67.09% |
admin-screen.png | 89.13KB | 33.13KB | ▼ 62.83% |