Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.97ms] Passed 4 tests
This is a short check of server-side resources used by PayPal Marketing Solutions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.92 ▼2.69 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.84 ▼5.89 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.46 ▼1.83 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.76 ▼13.47 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.60 ▼0.87 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by PayPal Marketing Solutions
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.12 ▼1.14 | 5.30 ▲3.47 | 44.30 ▲2.43 |
Dashboard /wp-admin | 2,212 ▲21 | 4.86 ▼0.04 | 106.91 ▲2.27 | 40.61 ▼7.77 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.05 ▼0.08 | 39.45 ▼1.25 | 34.87 ▲0.66 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.51 ▲0.17 | 633.03 ▲3.95 | 57.12 ▼1.52 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.18 ▲0.02 | 98.62 ▼5.21 | 45.15 ▲1.94 |
PayPal Marketing Solutions /wp-admin/paypal-marketing-solutions.php | 26 | 0.44 | 0.09 | 13.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/paypal-promotions-and-insights/includes/admin/class-paypal-marketing-solutions-admin.php:368
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paypal-promotions-and-insights/includes/frontend/class-paypal-marketing-solutions-frontend.php:55
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/paypal-marketing-solutions.php
- > Network (severe)
wp-admin/paypal-marketing-solutions.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: statistics, seo, solutions, marketing, tracking...
paypal-promotions-and-insights/paypal-promotions-and-insights.php 85% from 13 tests
Analyzing the main PHP file in "PayPal Marketing Solutions" version 1.2
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected410 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 54 | 175 | 309 |
CSS | 1 | 20 | 1 | 101 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 69.23% |
▷ Protected methods | 4 | 30.77% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/header-image.png | 10.29KB | 4.02KB | ▼ 60.93% |
assets/img/arrow.png | 0.35KB | 0.25KB | ▼ 28.73% |
assets/img/icon-2.png | 4.08KB | 2.19KB | ▼ 46.17% |
assets/img/icon-3.png | 3.57KB | 2.05KB | ▼ 42.59% |
assets/img/arrow-down.png | 14.88KB | 0.23KB | ▼ 98.48% |