84% novaonx-landingpage

Code Review | NovaonX Landing Page - Landing Page Builder

WordPress plugin NovaonX Landing Page - Landing Page Builder scored84%from 54 tests.

About plugin

  • Plugin page: novaonx-landingpage
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.2
  • WordPress version: 6.3.1
  • First release: Jun 28, 2019
  • Latest release: Jul 3, 2019
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: novaonx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /775 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by NovaonX Landing Page - Landing Page Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.89 ▼5.21
Dashboard /wp-admin3.33 ▲0.0347.63 ▼2.81
Posts /wp-admin/edit.php3.38 ▲0.0350.57 ▼2.19
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.17 ▼5.90
Media Library /wp-admin/upload.php3.25 ▲0.0236.59 ▼3.79

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for NovaonX Landing Page - Landing Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7514.36 ▲0.091.55 ▼0.3638.72 ▼6.68
Dashboard /wp-admin2,240 ▲635.55 ▼0.0789.23 ▼9.1637.53 ▼10.22
Posts /wp-admin/edit.php2,198 ▲981.96 ▼0.0139.08 ▲0.5735.08 ▼1.93
Add New Post /wp-admin/post-new.php1,547 ▲1923.24 ▲0.10690.23 ▲16.7358.84 ▲7.81
Media Library /wp-admin/upload.php1,448 ▲484.22 ▲0.0899.48 ▼10.3544.60 ▼2.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/novaonx-landingpage/add-template.php:160
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/novaonx-landingpage/landingpage.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post() in wp-content/plugins/novaonx-landingpage/null-template.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% 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: landing, page builder, landingpage, landing page, builder

novaonx-landingpage/landingpage.php 92% from 13 tests

"NovaonX Landing Page - Landing Page Builder" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("novaonx-landingpage.php" instead of "landingpage.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected538 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP39768538

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity26.00
▷ Minimum class complexity7.00
▷ Maximum class complexity45.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods1990.48%
▷ Protected methods14.76%
▷ Private methods14.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected