78% webflow-pages

Code Review | Webflow Pages

WordPress plugin Webflow Pages scored78%from 54 tests.

About plugin

  • Plugin page: webflow-pages
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 24, 2019
  • Latest release: Oct 12, 2023
  • Number of updates: 21
  • Update frequency: every 70.6 days
  • Top authors: webflowapp (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active /34,473 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.52MB] [CPU: ▼6.53ms] Passed 4 tests

An overview of server-side resources used by Webflow Pages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.22581.41 ▲540.08
Dashboard /wp-admin3.45 ▲0.1461.45 ▲7.21
Posts /wp-admin/edit.php3.56 ▲0.2057.16 ▲10.13
Add New Post /wp-admin/post-new.php3.32 ▼2.5639.95 ▼49.54
Media Library /wp-admin/upload.php3.37 ▲0.1440.42 ▲6.10
Welcome /wp-admin/admin.php?page=webflow-settings3.3432.00
Settings /wp-admin/admin.php?page=webflow-pages-settings3.35437.65

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Webflow Pages: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.33 ▼1.361.68 ▼0.2837.55 ▼8.09
Dashboard /wp-admin2,252 ▲646.00 ▲1.12101.32 ▼2.8140.47 ▲2.18
Posts /wp-admin/edit.php2,140 ▲512.02 ▲0.0449.94 ▲7.8735.43 ▲2.04
Add New Post /wp-admin/post-new.php1,556 ▲1123.01 ▲4.54699.98 ▲72.6861.38 ▲8.74
Media Library /wp-admin/upload.php1,437 ▲524.39 ▲0.1596.22 ▼22.7343.97 ▼7.27
Welcome /wp-admin/admin.php?page=webflow-settings9222.1528.2557.34
Settings /wp-admin/admin.php?page=webflow-pages-settings8911.8825.4922.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/webflow-pages/includes/admin/views/admin-welcome-page.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant WEBFLOW_PAGES_PLUGIN_DIRECTORY_URL - assumed 'WEBFLOW_PAGES_PLUGIN_DIRECTORY_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/webflow-pages/includes/admin/views/admin-welcome-page.php on line 23
    • > PHP Warning
      Use of undefined constant WEBFLOW_PAGES_PLUGIN_DIRECTORY_URL - assumed 'WEBFLOW_PAGES_PLUGIN_DIRECTORY_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/webflow-pages/includes/admin/views/admin-welcome-page.php on line 3

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 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
1 plugin tags: visual builder

webflow-pages/webflow-pages.php 85% from 13 tests

The main file in "Webflow Pages" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path folder does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected5,069 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
JSON2002,356
Svelte2314621,354
PHP10301363851
JavaScript73139399
SVG30270
CSS21126
Markdown16013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity27.75
▷ Minimum class complexity3.00
▷ Maximum class complexity73.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods54
▷ Static methods47.41%
▷ Public methods4583.33%
▷ Protected methods00.00%
▷ Private methods916.67%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 2.78MB with 1.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png179.09KB52.22KB▼ 70.84%
assets/banner-1544x500.png420.33KB170.58KB▼ 59.42%
assets/screenshot-2.png195.14KB57.33KB▼ 70.62%
assets/icon-256x256.png12.79KB5.99KB▼ 53.13%
assets/banner-772x250.png187.18KB62.73KB▼ 66.49%