84% geniipress-landing-pages

Code Review | GeniiPress Landing Pages

WordPress plugin GeniiPress Landing Pages scored84%from 54 tests.

About plugin

  • Plugin page: geniipress-landin...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.3-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 19, 2019
  • Latest release: Feb 19, 2019
  • Number of updates: 21
  • Update frequency: N/A
  • Top authors: geniipress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /590 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by GeniiPress Landing Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.24 ▼0.64
Dashboard /wp-admin3.34 ▲0.0449.87 ▼4.41
Posts /wp-admin/edit.php3.39 ▲0.0348.18 ▼7.43
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.44 ▼21.20
Media Library /wp-admin/upload.php3.26 ▲0.0338.67 ▼0.53
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=gp_lp_landing_pages_3.2540.62
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=gp_lp_landing_pages_3.2635.56
All Items /wp-admin/edit.php?post_type=gp_lp_landing_pages_3.3138.22
Add New /wp-admin/post-new.php?post_type=gp_lp_landing_pages_5.8477.26

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
category_children
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by GeniiPress Landing Pages
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲9213.65 ▼0.651.72 ▼0.3442.66 ▼3.36
Dashboard /wp-admin2,253 ▲505.83 ▼0.0494.49 ▼23.3640.45 ▼6.65
Posts /wp-admin/edit.php2,138 ▲381.99 ▼0.0734.55 ▼2.5535.31 ▼2.65
Add New Post /wp-admin/post-new.php1,574 ▲4823.42 ▲5.86620.91 ▼13.2350.01 ▼2.08
Media Library /wp-admin/upload.php1,429 ▲264.27 ▲0.00102.86 ▲3.2044.74 ▼0.47
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=gp_lp_landing_pages_1,4902.1529.1937.72
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=gp_lp_landing_pages_1,3542.1527.3330.68
All Items /wp-admin/edit.php?post_type=gp_lp_landing_pages_1,1761.9330.6734.30
Add New /wp-admin/post-new.php?post_type=gp_lp_landing_pages_1,29715.65287.2311.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • category_children

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/post-new.php?post_type=gp_lp_landing_pages_
    • > Network (severe)
    index.php/wp-json/wp/v2/gp_lp_landing_pages_cpt/11?context=edit&_locale=user - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: landing page, landing page custom post type, landing pages, landing page cpt

geniipress-landing-pages/geniipress-landing-pages.php Passed 13 tests

The main file in "GeniiPress Landing Pages" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
71 characters long description:
Creates a Custom Post Type for "Landing Pages" with simple URL rewrite.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin65 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP122065

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
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
4 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png72.65KB31.32KB▼ 56.88%
assets/banner-772x250.png46.61KB18.91KB▼ 59.44%
assets/icon-128x128.png8.18KB4.13KB▼ 49.51%
assets/icon-256x256.png17.73KB7.33KB▼ 58.69%