Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/easy-paypal-lte/admin/Installer.php+100
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.73ms] Passed 4 tests
Server-side resources used by EZ PayPal
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.41 ▼4.14 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.40 ▼1.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.20 ▼1.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.77 ▼15.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.54 ▼0.54 |
Server storage [IO: ▲2.69MB] [DB: ▲0.32MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 173 new files
Database: 6 new tables, 6 new options
New tables |
---|
wp_ezpp_products |
wp_ezpp_product_meta |
wp_ezpp_categories |
wp_ezpp_templates |
wp_ezpp_options_meta |
wp_ezpp_administrator |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for EZ PayPal
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.25 ▼0.34 | 1.89 ▲0.20 | 40.59 ▼0.07 |
Dashboard /wp-admin | 2,195 ▲21 | 5.55 ▼0.03 | 83.98 ▼2.80 | 38.29 ▼1.80 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.04 | 33.97 ▼3.63 | 34.29 ▼0.85 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.19 ▲0.14 | 672.38 ▲6.96 | 58.08 ▲0.71 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.23 ▲0.03 | 108.40 ▲13.93 | 47.00 ▲4.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.32MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 6 tables in the database
- wp_ezpp_products
- wp_ezpp_options_meta
- wp_ezpp_templates
- wp_ezpp_categories
- wp_ezpp_product_meta
- wp_ezpp_administrator
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 59× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/easy-paypal-lte/admin/advanced.php
- > /wp-content/plugins/easy-paypal-lte/admin/profile.php
- > /wp-content/plugins/easy-paypal-lte/admin/products.php
- > /wp-content/plugins/easy-paypal-lte/ajax/success.php
- > /wp-content/plugins/easy-paypal-lte/admin/index.php
- > /wp-content/plugins/easy-paypal-lte/admin/products-edit.php
- > /wp-content/plugins/easy-paypal-lte/index.php
- > /wp-content/plugins/easy-paypal-lte/admin/stats.php
- > /wp-content/plugins/easy-paypal-lte/footer.php
- > /wp-content/plugins/easy-paypal-lte/server.php
- 65× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easy-paypal-lte/admin/Installer.php on line 100
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easy-paypal-lte/admin/Installer.php on line 100
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-paypal-lte/ezKillLite.php on line 21
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easy-paypal-lte/admin/Installer.php on line 100
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easy-paypal-lte/admin/Installer.php on line 100
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easy-paypal-lte/admin/Installer.php on line 100
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/easy-paypal-lte/ezKillLite.php on line 21
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easy-paypal-lte/admin/Installer.php on line 100
- > PHP Fatal error
Uncaught Error: Class 'EZ' not found in wp-content/plugins/easy-paypal-lte/admin/tour.php:2
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easy-paypal-lte/admin/Installer.php on line 100
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (15 tag instead of maximum 10)
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Dashboard, showing the beautifully designed admin interface.), #2 (Tour and Help, to quickly get started with EZ PayPal.), #3 (Editable product listing on your admin page. The table is sortable and searchable.), #4 (Managing your product categories, showing how to edit an attribute.), #5 (Configuration screen. Note the help popover showing what the option means and does.), #6 (Managing your account profile, password etc.), #7 (Your automatically generated e-shop. Your products are listed in a neat, sortable, searchable table with a "Buy Now" button.), #8 (The screen resulting from a "Buy Now" button click.), #9 (The return screen after a successful purchase. This is the download page where your buyer is automatically forwarded to.), #10 (The return screen if the IPN message hasn't been posted. If the PayPal information is not yet received by your server, your buyer sees this screen where he can retrieve his purchase link. (This feature reduced my support load by 90%).), #11 (Advanced shop configuration.), #12 (Your e-shop, using a dark theme and grid view.), #13 (Sales charts in the Pro version.), #14 (Sales summary and details.), #15 (Subscription summary and details in the Pro version.), #16 (Template editor in the Pro version.)
easy-paypal-lte/easy-paypal.php 85% from 13 tests
The principal PHP file in "EZ PayPal" v. 7.90 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-paypal-lte.php" instead of "easy-paypal.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 202 characters long)
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
No dangerous file extensions were detected13,035 lines of code in 111 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 87 | 738 | 215 | 9,413 |
CSS | 11 | 208 | 97 | 1,874 |
JavaScript | 10 | 90 | 90 | 845 |
SVG | 2 | 0 | 0 | 749 |
SQL | 1 | 9 | 0 | 154 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 43.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 289 | |
▷ Static methods | 103 | 35.64% |
▷ Public methods | 280 | 96.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 3.11% |
Functions | 50 | |
▷ Named functions | 50 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
37 compressed PNG files occupy 0.96MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-8.png | 14.14KB | 14.75KB | 0.00% |
admin/img/spritemap.png | 9.97KB | 9.37KB | ▼ 5.99% |
screenshot-13.png | 86.51KB | 89.83KB | 0.00% |
admin/img/star-on.png | 0.62KB | 0.61KB | ▼ 1.58% |
assets/checkout-header.png | 19.44KB | 7.67KB | ▼ 60.55% |