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.09MB] [CPU: ▼2.72ms] Passed 4 tests
An overview of server-side resources used by Priceline Partner Network for Wordpress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 35.09 ▼3.69 |
Dashboard /wp-admin | 3.40 ▲0.09 | 45.80 ▲2.16 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.00 ▼3.83 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.27 ▼5.50 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.71 ▲2.82 |
Priceline Partner Network /wp-admin/options-general.php?page=priceline-partner-network | 3.35 | 36.26 |
Server storage [IO: ▲0.25MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Priceline Partner Network for Wordpress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.28 ▼0.07 | 1.68 ▲0.08 | 40.85 ▼1.82 |
Dashboard /wp-admin | 2,202 ▲21 | 5.59 ▼0.12 | 93.95 ▼7.53 | 40.76 ▼2.65 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.03 ▲0.02 | 39.08 ▲0.05 | 35.43 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,538 ▲7 | 18.18 ▼5.01 | 631.94 ▼37.35 | 66.64 ▲14.64 |
Media Library /wp-admin/upload.php | 1,401 ▲7 | 4.21 ▼0.03 | 115.45 ▲20.23 | 48.99 ▲6.34 |
Priceline Partner Network /wp-admin/options-general.php?page=priceline-partner-network | 1,257 | 2.12 | 27.31 | 39.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=priceline-partner-network
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pramadillo-priceline-partner-network/public/partials/search-box-car.php
- > /wp-content/plugins/pramadillo-priceline-partner-network/public/partials/search-box-multi.php
- > /wp-content/plugins/pramadillo-priceline-partner-network/public/partials/search-box-flight.php
- > /wp-content/plugins/pramadillo-priceline-partner-network/public/partials/search-box-hotel.php
- > /wp-content/plugins/pramadillo-priceline-partner-network/public/partials/city-list.php
- > /wp-content/plugins/pramadillo-priceline-partner-network/public/partials/search-box-vp.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/pramadillo-priceline-partner-network/admin/partials/settings.php:3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/pramadillo-priceline-partner-network/public/partials/city-list.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/pramadillo-priceline-partner-network/admin/partials/settings-sidebar.php:3
- > PHP Notice
Undefined variable: cities in wp-content/plugins/pramadillo-priceline-partner-network/public/partials/city-list.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: travel, priceline, priceline partner network, ppn
pramadillo-priceline-partner-network/priceline-partner-network.php 85% from 13 tests
The main PHP script in "Priceline Partner Network for Wordpress" version 1.1.6 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pramadillo-priceline-partner-network.php" instead of "priceline-partner-network.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,462 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 238 | 395 | 1,354 |
CSS | 2 | 146 | 0 | 764 |
JavaScript | 7 | 50 | 27 | 344 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 25 | 78.12% |
▷ Protected methods | 2 | 6.25% |
▷ Private methods | 5 | 15.62% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/products_highlight.png | 1.99KB | 1.09KB | ▼ 45.29% |
public/img/products.png | 1.99KB | 1.09KB | ▼ 45.24% |
public/img/icons.png | 4.07KB | 2.09KB | ▼ 48.63% |