10% pilotpress

Code Review | PilotPress

WordPress plugin PilotPress scored10%from 54 tests.

About plugin

  • Plugin page: pilotpress
  • Plugin version: 2.0.27
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 26, 2012
  • Latest release: Oct 7, 2022
  • Number of updates: 110
  • Update frequency: every 33.9 days
  • Top authors: ontraport (51.82%)sreedoap (49.09%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /93,446 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.43 ▼36.50
Dashboard /wp-admin2.05 ▼1.305.33 ▼54.49
Posts /wp-admin/edit.php2.05 ▼1.315.21 ▼39.47
Add New Post /wp-admin/post-new.php2.05 ▼3.845.82 ▼92.24
Media Library /wp-admin/upload.php2.05 ▼1.185.68 ▼26.50
PilotPress /wp-admin/options-general.php?page=pilotpress-settings2.056.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /5,211 ▲2,45017.31 ▲2.698.15 ▲6.3338.37 ▼6.21
Dashboard /wp-admin4,524 ▲2,3447.29 ▲1.66176.76 ▲85.3852.64 ▲11.37
Posts /wp-admin/edit.php4,475 ▲2,3785.16 ▲3.1891.47 ▲56.5933.97 ▼5.17
Add New Post /wp-admin/post-new.php3,608 ▲2,08021.67 ▼1.60634.42 ▼41.7236.81 ▼19.40
Media Library /wp-admin/upload.php3,592 ▲2,1894.98 ▲0.80130.49 ▲36.1442.80 ▲0.09
PilotPress /wp-admin/options-general.php?page=pilotpress-settings3,4455.2992.4346.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP48315794,966
CSS191032301,224
JavaScript5156741,148
Markdown1001

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 code0.45
Average class complexity235.33
▷ Minimum class complexity10.00
▷ Maximum class complexity588.00
Average method complexity5.26
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods165
▷ Static methods106.06%
▷ Public methods15895.76%
▷ Protected methods31.82%
▷ Private methods42.42%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants110.00%
▷ Class constants990.00%
▷ Public constants9100.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
FileSize - originalSize - compressedSavings
js/bg_cream_y-only.png2.94KB1.47KB▼ 49.87%
assets/icon-128x128.png2.34KB0.91KB▼ 60.95%
js/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
js/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
js/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%