84% ontrapages

Code Review | ONTRApages

WordPress plugin ONTRApages scored84%from 54 tests.

About plugin

  • Plugin page: ontrapages
  • Plugin version: 1.2.25
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 23, 2015
  • Latest release: Mar 31, 2023
  • Number of updates: 57
  • Update frequency: every 47.7 days
  • Top authors: ontraport (75.44%)william.deangelis (26.32%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /49,044 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▲1.74ms] Passed 4 tests

A check of server-side resources used by ONTRApages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.31 ▲0.38
Dashboard /wp-admin3.46 ▲0.1547.00 ▼1.22
Posts /wp-admin/edit.php3.57 ▲0.2249.35 ▲3.93
Add New Post /wp-admin/post-new.php6.06 ▲0.1789.78 ▲3.87
Media Library /wp-admin/upload.php3.38 ▲0.1541.03 ▲9.44
Add New /wp-admin/post-new.php?post_type=ontrapage3.4241.48
All ONTRApages /wp-admin/edit.php?post_type=ontrapage3.4240.71
Settings /wp-admin/edit.php?post_type=ontrapage&page=opsettings3.3533.54

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

ONTRApages: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲13013.74 ▼0.851.56 ▼0.0745.85 ▲1.13
Dashboard /wp-admin2,256 ▲715.26 ▲0.3299.85 ▼12.6872.84 ▲27.32
Posts /wp-admin/edit.php2,150 ▲582.48 ▲0.4341.91 ▲7.2637.99 ▲5.58
Add New Post /wp-admin/post-new.php1,584 ▲6023.22 ▼0.07673.32 ▲11.0837.54 ▼16.66
Media Library /wp-admin/upload.php1,444 ▲594.56 ▲0.28101.90 ▼14.9883.05 ▲30.23
Add New /wp-admin/post-new.php?post_type=ontrapage1,4913.2856.3367.49
All ONTRApages /wp-admin/edit.php?post_type=ontrapage1,1152.3131.2429.69
Settings /wp-admin/edit.php?post_type=ontrapage&page=opsettings9721.9324.5433.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to get property 'query_vars' of non-object in wp-content/plugins/ontrapages/single-ontrapage.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ontrapages/single-ontrapage.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ontrapages/single-ontrapage.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
5 plugin tags: content delivery, landing pages, landing page builder, sales pages, coming soon pages

ontrapages/ontrapages.php 85% from 13 tests

The main PHP script in "ONTRApages" version 1.2.25 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)
  • 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
Success! There were no dangerous files found in this plugin1,365 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7200130858
CSS1982408
JavaScript41429799

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity24.00
▷ Minimum class complexity17.00
▷ Maximum class complexity35.00
Average method complexity3.95
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods39
▷ Static methods39100.00%
▷ Public methods3282.05%
▷ Protected methods37.69%
▷ Private methods410.26%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
_inc/js/oplogo.png4.80KB2.41KB▼ 49.87%
_inc/images/opgicon.png48.80KB0.70KB▼ 98.57%
_inc/images/ontraform_positions.png1.42KB0.36KB▼ 74.43%
_inc/images/publish--embedded.png2.20KB0.74KB▼ 66.49%
_inc/images/oplogo.png67.19KB5.26KB▼ 92.17%