68% instapage

Code Review | Instapage Plugin

WordPress plugin Instapage Plugin scored68%from 54 tests.

About plugin

  • Plugin page: instapage
  • Plugin version: 3.5.7
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 7, 2013
  • Latest release: May 22, 2023
  • Number of updates: 102
  • Update frequency: every 33.9 days
  • Top authors: marek@instapage.com (100%)

Code review

54 tests

User reviews

219 reviews

Install metrics

10,000+ active /456,702 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.62MB] [CPU: ▲7.86ms] Passed 4 tests

Server-side resources used by Instapage Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6252.40 ▲11.34
Dashboard /wp-admin3.93 ▲0.6260.45 ▲9.97
Posts /wp-admin/edit.php3.98 ▲0.6257.21 ▲7.41
Add New Post /wp-admin/post-new.php6.51 ▲0.6299.73 ▲7.89
Media Library /wp-admin/upload.php3.85 ▲0.6246.99 ▲6.15

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 53 new files
Database: 3 new tables, 6 new options
New tables
wp_instapage_options
wp_instapage_pages
wp_instapage_debug
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Instapage Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲12614.44 ▲0.411.68 ▼0.4346.54 ▲1.07
Dashboard /wp-admin2,306 ▲1184.88 ▼1.04109.53 ▲0.9439.29 ▼0.71
Posts /wp-admin/edit.php2,186 ▲972.02 ▲0.0339.78 ▼0.0537.08 ▲2.22
Add New Post /wp-admin/post-new.php1,543 ▲2923.27 ▼0.19645.76 ▼8.4390.37 ▲12.17
Media Library /wp-admin/upload.php1,485 ▲974.22 ▲0.02108.96 ▼3.0845.08 ▲0.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method InstapageCmsPluginWPConnector::removePlugin() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/instapage/views/base.php
    • > /wp-content/plugins/instapage/instapage.php
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'InstapageCmsPluginConnector' not found in wp-content/plugins/instapage/views/toolbar.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'InstapageCmsPluginConnector' not found in wp-content/plugins/instapage/views/edit.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'InstapageCmsPluginConnector' not found in wp-content/plugins/instapage/templates/log.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'InstapageCmsPluginConnector' not found in wp-content/plugins/instapage/templates/log_plugins.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'InstapageCmsPluginLPAjaxLoaderController' not found in wp-content/plugins/instapage/modules/lpAjaxLoader/view.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'InstapageCmsPluginConnector' not found in wp-content/plugins/instapage/views/messages.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'InstapageCmsPluginConnector' not found in wp-content/plugins/instapage/views/listing.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'InstapageCmsPluginConnector' not found in wp-content/plugins/instapage/templates/log_options.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'InstapageCmsPluginConnector' not found in wp-content/plugins/instapage/views/settings.php:7

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 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 require attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt is a good inspiration

instapage/instapage.php Passed 13 tests

"Instapage Plugin" version 3.5.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
102 characters long description:
The best way for WordPress to seamlessly publish landing pages as a natural extension of your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected9,556 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
CSS35256254,815
PHP237161,3323,107
JavaScript243041141,516
Markdown1320118

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity39.67
▷ Minimum class complexity5.00
▷ Maximum class complexity104.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods203
▷ Static methods7235.47%
▷ Public methods17586.21%
▷ Protected methods10.49%
▷ Private methods2713.30%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin