Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5643
File class-http.php is deprecated since version 5.9.0! Use wp-includes/class-wp-http.php instead.
Server metrics [RAM: ▼1.97MB] [CPU: ▼55.68ms] Passed 4 tests
A check of server-side resources used by PilotPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.43 ▼36.50 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.33 ▼54.49 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.21 ▼39.47 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.82 ▼92.24 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.68 ▼26.50 |
PilotPress /wp-admin/options-general.php?page=pilotpress-settings | 2.05 | 6.82 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 47 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_ppprotect |
New WordPress options |
---|
can_compress_scripts |
widget_pilotpress_widget |
ppprotectDbVersion |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PilotPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,211 ▲2,450 | 17.31 ▲2.69 | 8.15 ▲6.33 | 38.37 ▼6.21 |
Dashboard /wp-admin | 4,524 ▲2,344 | 7.29 ▲1.66 | 176.76 ▲85.38 | 52.64 ▲11.37 |
Posts /wp-admin/edit.php | 4,475 ▲2,378 | 5.16 ▲3.18 | 91.47 ▲56.59 | 33.97 ▼5.17 |
Add New Post /wp-admin/post-new.php | 3,608 ▲2,080 | 21.67 ▼1.60 | 634.42 ▼41.72 | 36.81 ▼19.40 |
Media Library /wp-admin/upload.php | 3,592 ▲2,189 | 4.98 ▲0.80 | 130.49 ▲36.14 | 42.80 ▲0.09 |
PilotPress /wp-admin/options-general.php?page=pilotpress-settings | 3,445 | 5.29 | 92.43 | 46.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5643
File class-http.php is deprecated since version 5.9.0! Use wp-includes/class-wp-http.php instead.
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_ppprotect
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- db_upgraded
- widget_pilotpress_widget
- ppprotectDbVersion
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=pilotpress-settings
- > User deprecated in wp-includes/functions.php+5643
File class-http.php is deprecated since version 5.9.0! Use wp-includes/class-wp-http.php instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pilotpress-settings
- > Notice in wp-content/plugins/pilotpress/pilotpress.php+4248
Trying to access array offset on value of type bool
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pilotpress/login-button.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant JS_DIR - assumed 'JS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pilotpress/login-button.php on line 168
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pilotpress/pilotpress.php:13
- > PHP Warning
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 Passed 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
10 plugin tags: ontraport, sendpepper, pilotpress, membership site, affiliate center...
pilotpress/pilotpress.php Passed 13 tests
The main PHP script in "PilotPress" version 2.0.27 is automatically included on every request by WordPress
39 characters long description:
ONTRAPORT WordPress integration plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected7,339 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 831 | 579 | 4,966 |
CSS | 19 | 103 | 230 | 1,224 |
JavaScript | 5 | 156 | 74 | 1,148 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 235.33 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 588.00 |
Average method complexity | 5.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 165 | |
▷ Static methods | 10 | 6.06% |
▷ Public methods | 158 | 95.76% |
▷ Protected methods | 3 | 1.82% |
▷ Private methods | 4 | 2.42% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 1 | 10.00% |
▷ Class constants | 9 | 90.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/bg_cream_y-only.png | 2.94KB | 1.47KB | ▼ 49.87% |
assets/icon-128x128.png | 2.34KB | 0.91KB | ▼ 60.95% |
js/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
js/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
js/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |