78% region-city-landing-pages-builder

Code Review | Region City Landing Pages Builder

WordPress plugin Region City Landing Pages Builder scored78%from 54 tests.

About plugin

  • Plugin page: region-city-landi...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Dec 22, 2017
  • Latest release: Mar 11, 2021
  • Number of updates: 15
  • Update frequency: every 78.4 days
  • Top authors: sukanyasoftwares (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,380 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.16ms] Passed 4 tests

An overview of server-side resources used by Region City Landing Pages Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.30 ▲1.27
Dashboard /wp-admin3.31 ▲0.0149.98 ▼1.76
Posts /wp-admin/edit.php3.36 ▲0.0046.46 ▼0.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.54 ▼11.52
Media Library /wp-admin/upload.php3.23 ▲0.0038.20 ▲0.75
Region city landing pages builder /wp-admin/options-general.php?page=content_settings3.1728.97

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Region City Landing Pages Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.79 ▲0.411.64 ▼0.0642.99 ▲3.47
Dashboard /wp-admin2,210 ▲225.79 ▲0.86102.32 ▼4.1337.93 ▼9.19
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0033.05 ▼3.7833.61 ▼0.32
Add New Post /wp-admin/post-new.php1,536 ▼223.25 ▲0.24683.21 ▲5.5256.79 ▲1.45
Media Library /wp-admin/upload.php1,392 ▲74.27 ▲0.09113.13 ▲7.4555.28 ▲7.15
Region city landing pages builder /wp-admin/options-general.php?page=content_settings8752.0222.1427.31

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=content_settings
    • > Notice in wp-content/plugins/region-city-landing-pages-builder/region-city-landing-pages-builder.php+102
    Undefined index: cityname
    • > GET request to /wp-admin/options-general.php?page=content_settings
    • > Notice in wp-content/plugins/region-city-landing-pages-builder/region-city-landing-pages-builder.php+143
    Undefined index: page_title
    • > GET request to /wp-admin/options-general.php?page=content_settings
    • > Notice in wp-content/plugins/region-city-landing-pages-builder/region-city-landing-pages-builder.php+149
    Undefined index: page_contents
    • > GET request to /wp-admin/options-general.php?page=content_settings
    • > Notice in wp-content/plugins/region-city-landing-pages-builder/region-city-landing-pages-builder.php+154
    Undefined index: action

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/region-city-landing-pages-builder/region-city-landing-pages-builder.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: city, landing pages, seo, multiple, states...

region-city-landing-pages-builder/region-city-landing-pages-builder.php 85% from 13 tests

The main file in "Region City Landing Pages Builder" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 196 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected142 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12232142

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin