84% webcake

Code Review | Webcake - Landing Page Builder

WordPress plugin Webcake - Landing Page Builder scored 84% from 54 tests.

About plugin

  • Plugin page: webcake
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.9.2
  • WordPress version: 6.3.1
  • First release: Mar 22, 2022
  • Latest release: Aug 3, 2022
  • Number of updates: 8
  • Update frequency: every 16.7 days
  • Top authors: huyme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 906 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.62MB] [CPU: ▼14.83ms] Passed 4 tests

An overview of server-side resources used by Webcake - Landing Page Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.79 ▼2.42
Dashboard /wp-admin3.37 ▲0.0648.38 ▲1.72
Posts /wp-admin/edit.php3.42 ▲0.0650.29 ▲3.08
Add New Post /wp-admin/post-new.php3.24 ▼2.6438.16 ▼60.90
Media Library /wp-admin/upload.php3.29 ▲0.0637.17 ▲2.28

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Webcake - Landing Page Builder: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲5513.65 ▼0.751.80 ▼0.3140.71 ▼1.42
Dashboard /wp-admin2,220 ▲325.80 ▼0.21112.58 ▼6.0486.79 ▲46.31
Posts /wp-admin/edit.php2,154 ▲621.99 ▼0.0140.06 ▼0.9439.24 ▲2.75
Add New Post /wp-admin/post-new.php1,536 ▲323.42 ▲0.24779.32 ▲148.9057.37 ▲8.43
Media Library /wp-admin/upload.php1,396 ▲114.24 ▲0.01103.36 ▼12.5671.73 ▲26.55

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
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 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/webcake/add-template.php:158
    • > PHP Fatal error
      Uncaught Error: Call to a member function prepare() on null in wp-content/plugins/webcake/null-template.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/webcake/webcake.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (https://statics.pancake.vn/web-media/48/c1/5e/fa/d6427653b3fa44d854f2171914c91e090286b98f56448f3101970b11.png), #2 (https://statics.pancake.vn/web-media/c8/f7/9d/37/be0a477764df14b26bd3ba342907acae8d244ad49106fdb736f4be29.png)
You can take inspiration from this readme.txt

webcake/webcake.php Passed 13 tests

The entry point to "Webcake - Landing Page Builder" version 1.1 is a PHP file that has certain tags in its header comment area
49 characters long description:
Connector to access content from Webcake service.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin522 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP310065522

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
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
There are no PNG files in this plugin