62% wp-responsive-landing-pages

Code Review | WP Responsive Landing Pages

WordPress plugin WP Responsive Landing Pages scored62%from 54 tests.

About plugin

  • Plugin page: wp-responsive-lan...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3+
  • WordPress version: 6.3.1
  • First release: Jun 6, 2017
  • Latest release: Jul 31, 2017
  • Number of updates: 7
  • Update frequency: every 9.4 days
  • Top authors: ukwpexperts (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /710 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by WP Responsive Landing Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1849.74 ▲9.35
Dashboard /wp-admin3.31 ▲0.0138.39 ▼10.18
Posts /wp-admin/edit.php3.37 ▲0.0245.79 ▲1.47
Add New Post /wp-admin/post-new.php5.63 ▼0.2689.11 ▼3.65
Media Library /wp-admin/upload.php3.34 ▲0.1139.35 ▲6.37
Add New /wp-admin/admin.php?page=wp-landing&id=&id=93.3035.89
View All /wp-admin/edit.php?post_type=landing-page3.3540.55

Server storage [IO: ▲5.45MB] [DB: ▲0.02MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 88 new files
Database: 2 new tables, 6 new options
New tables
wp_landing_pages
wp_landing_pages_template
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Responsive Landing Pages
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲12014.75 ▲0.161.80 ▲0.0239.36 ▼1.64
Dashboard /wp-admin2,243 ▲555.76 ▲0.8797.40 ▼3.9243.48 ▲0.82
Posts /wp-admin/edit.php2,132 ▲432.01 ▼0.0238.92 ▲1.7341.64 ▲6.28
Add New Post /wp-admin/post-new.php1,395 ▼11921.52 ▲4.01509.69 ▼155.9735.97 ▼20.84
Media Library /wp-admin/upload.php1,425 ▲404.20 ▲0.0295.56 ▼4.0245.76 ▲1.30
Add New /wp-admin/admin.php?page=wp-landing&id=&id=91,2702.6355.7877.08
View All /wp-admin/edit.php?post_type=landing-page1,1001.9232.2235.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 2 tables
    • wp_landing_pages
    • wp_landing_pages_template
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=wp-landing&id=&id=9
    • > Notice in wp-content/plugins/wp-responsive-landing-pages/classes/class.admin-menus.php+37
    Undefined index: post_type
    • > GET request to /wp-admin/admin.php?page=wp-landing&id=&id=9
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/wp-responsive-landing-pages/wp-responsive-landing-pages.php+427
    Undefined index: id
    • > GET request to /wp-admin/edit.php?post_type=landing-page
    • > Notice in wp-content/plugins/wp-responsive-landing-pages/classes/class.admin-menus.php+36
    Undefined index: page

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-responsive-landing-pages/classes/class.admin-menus.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=wp-landing&id=&id=9
    • > Javascript (severe) in unknown
    /wp-content/plugins/wp-responsive-landing-pages/js/bootstrap.min.js?ver=6.3.1 5:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
    • > GET request to /wp-admin/admin.php?page=wp-landing&id=&id=9
    • > Console-api (severe) in unknown
    /wp-content/plugins/wp-responsive-landing-pages/js/admin/wp-landing.js?ver=6.3.1 325:14 SyntaxError: Unexpected end of JSON inputat JSON.parse ()at HTMLDocument. (/wp-content/plugins/wp-responsive-landing-pages/js/admin/wp-landing.js?ver=6.3.1:319:30)at HTMLDocument.dispatch (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-slider&ver=6.3.1:2:39997)at v.handle (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-slider&ver=6.3.1:2:37968)at Object.trigger (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-slider&ver=6.3.1:2:70063)at e..triggerHandler (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-slider&ver=6.3.1:2:70750)at HTMLDocument. (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-slider&ver=6.3.1:5:10632)at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-slider&ver=6.3.1:2:26990)at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-slider&ver=6.3.1:2:27292)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

wp-responsive-landing-pages/wp-responsive-landing-pages.php Passed 13 tests

This is the main PHP file of "WP Responsive Landing Pages" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
53 characters long description:
Landing page template framework with variant testing.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected19,361 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
SVG61011,257
JavaScript77302844,596
CSS121531462,691
PHP54362815
Markdown1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.33
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods1453.85%
▷ Public methods2388.46%
▷ Protected methods00.00%
▷ Private methods311.54%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.64MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png4.90KB4.30KB▼ 12.33%
images/loading-100x100.png3.42KB0.32KB▼ 90.77%
images/pattern.png648.48KB614.32KB▼ 5.27%
images/150-150.png3.23KB1.99KB▼ 38.23%