84% punnel-landing-page-builder

Code Review | Punnel - Landing Page Builder

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

About plugin

  • Plugin page: punnel-landing-pa...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.2
  • WordPress version: 6.3.1
  • First release: Dec 12, 2018
  • Latest release: Jun 13, 2019
  • Number of updates: 12
  • Update frequency: every 15.3 days
  • Top authors: punnel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,112 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Punnel - Landing Page Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.05 ▼4.34
Dashboard /wp-admin3.33 ▲0.0354.61 ▲3.63
Posts /wp-admin/edit.php3.45 ▲0.0947.18 ▼2.96
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.25 ▼13.99
Media Library /wp-admin/upload.php3.25 ▲0.0337.36 ▼2.91

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Punnel - Landing Page Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲6613.19 ▼1.362.13 ▲0.1542.67 ▼6.40
Dashboard /wp-admin2,233 ▲294.85 ▼0.08105.82 ▼4.5540.40 ▼6.93
Posts /wp-admin/edit.php2,163 ▲632.00 ▲0.0336.75 ▼4.6734.61 ▼0.32
Add New Post /wp-admin/post-new.php1,561 ▲2923.54 ▲0.44664.64 ▲6.5456.01 ▼7.80
Media Library /wp-admin/upload.php1,415 ▲154.13 ▼0.07101.48 ▼14.9643.33 ▼6.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/punnel-landing-page-builder/punnel.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/punnel-landing-page-builder/add-template.php:160
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post() in wp-content/plugins/punnel-landing-page-builder/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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (assets/icon-256x256.jpg), #2 (assets/banner-1544x500.jpg)
You can take inspiration from this readme.txt

punnel-landing-page-builder/punnel.php 92% from 13 tests

The main file in "Punnel - Landing Page Builder" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("punnel-landing-page-builder.php" instead of "punnel.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
Good job! No executable or dangerous file extensions detected554 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP39162554

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity26.50
▷ Minimum class complexity7.00
▷ Maximum class complexity46.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods29.09%
▷ Public methods2090.91%
▷ Protected methods14.55%
▷ Private methods14.55%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin