78% autopilot

Code Review | Ortto

WordPress plugin Ortto scored78%from 54 tests.

About plugin

  • Plugin page: autopilot
  • Plugin version: 1.0.19
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Aug 3, 2021
  • Latest release: Mar 6, 2023
  • Number of updates: 27
  • Update frequency: every 23.5 days
  • Top authors: rafalautopilot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,915 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.95ms] Passed 4 tests

A check of server-side resources used by Ortto
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.62 ▼2.74
Dashboard /wp-admin3.33 ▲0.0345.26 ▼6.47
Posts /wp-admin/edit.php3.38 ▲0.0346.31 ▼2.97
Add New Post /wp-admin/post-new.php5.93 ▲0.0580.24 ▼11.61
Media Library /wp-admin/upload.php3.26 ▲0.0342.56 ▲4.83

Server storage [IO: ▲3.70MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
ap3_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Ortto
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7714.36 ▲0.011.67 ▼0.0743.78 ▼4.10
Dashboard /wp-admin2,245 ▲685.56 ▼0.1187.66 ▼1.0538.53 ▼6.09
Posts /wp-admin/edit.php2,152 ▲492.00 ▲0.0235.35 ▼7.4934.75 ▼0.78
Add New Post /wp-admin/post-new.php1,551 ▲2523.07 ▲0.03657.29 ▼49.9855.72 ▲3.68
Media Library /wp-admin/upload.php1,450 ▲474.24 ▲0.0595.13 ▼11.1743.92 ▼2.27

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/autopilot/admin/partials/autopilot-help-display.php
    • > /wp-content/plugins/autopilot/public/partials/autopilot-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/autopilot/admin/partials/autopilot-admin-display.php:20

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

autopilot/autopilot.php Passed 13 tests

"Ortto" version 1.0.19's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
48 characters long description:
Customer data and marketing automation platform.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,041 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13211679968
JavaScript292739
CSS2251029
SVG1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity17.57
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods52
▷ Static methods23.85%
▷ Public methods3567.31%
▷ Protected methods00.00%
▷ Private methods1732.69%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants18.33%
▷ Class constants1191.67%
▷ Public constants11100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 3.62MB with 2.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png83.13KB24.18KB▼ 70.91%
assets/screenshot-6.png156.06KB69.97KB▼ 55.16%
assets/screenshot-2.png532.72KB155.07KB▼ 70.89%
admin/assets/ap-logo.png1.16KB0.63KB▼ 45.58%
assets/screenshot-3.png605.16KB166.70KB▼ 72.45%