78% mesh

Code Review | Mesh - Page Builder

WordPress plugin Mesh - Page Builder scored78%from 54 tests.

About plugin

  • Plugin page: mesh
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: May 12, 2016
  • Latest release: Feb 2, 2022
  • Number of updates: 41
  • Update frequency: every 51.0 days
  • Top authors: aware (87.8%)desrosj (14.63%)

Code review

54 tests

User reviews

10 reviews

Install metrics

100+ active /18,891 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.19ms] Passed 4 tests

This is a short check of server-side resources used by Mesh - Page Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1334.81 ▼3.89
Dashboard /wp-admin3.44 ▲0.1349.42 ▼0.89
Posts /wp-admin/edit.php3.55 ▲0.2048.94 ▲2.77
Add New Post /wp-admin/post-new.php6.04 ▲0.1582.28 ▼13.91
Media Library /wp-admin/upload.php3.36 ▲0.1334.03 ▼2.06
Mesh Templates /wp-admin/edit.php?post_type=mesh_template3.4538.57
Mesh /wp-admin/options-general.php?page=mesh3.8034.25
Add Template /wp-admin/post-new.php?post_type=mesh_template3.5751.67

Server storage [IO: ▲1.13MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 173 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
mesh_post_types
widget_recent-posts
mesh_version
mesh_settings
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Mesh - Page Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,073 ▲32713.73 ▼0.695.50 ▲3.6830.71 ▼17.42
Dashboard /wp-admin2,371 ▲1835.87 ▼0.1899.14 ▼13.3580.43 ▲33.22
Posts /wp-admin/edit.php2,250 ▲1642.04 ▲0.0442.86 ▲9.4540.87 ▲7.76
Add New Post /wp-admin/post-new.php1,615 ▲9623.60 ▲0.47649.61 ▼28.0632.79 ▼16.22
Media Library /wp-admin/upload.php1,573 ▲1914.29 ▲0.06101.38 ▲3.1081.36 ▲36.99
Mesh Templates /wp-admin/edit.php?post_type=mesh_template1,3072.5540.5940.95
Mesh /wp-admin/options-general.php?page=mesh1,1932.0932.6567.06
Add Template /wp-admin/post-new.php?post_type=mesh_template2,3758.09168.45146.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • mesh_settings
    • mesh_post_types
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • mesh_version

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 115× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mesh/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mesh/admin/upgrade-notice.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mesh/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mesh/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mesh/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mesh/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mesh/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mesh/vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mesh/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mesh/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=mesh_template
    • > Network (severe)
    wp-content/plugins/mesh/assets/images/mesh-full-logo-full-color@2x.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=mesh_template
    • > Network (severe)
    wp-content/plugins/mesh/css/fonts/mesh.ttf?2cd9aa - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=mesh_template
    • > Network (severe)
    wp-content/plugins/mesh/css/fonts/mesh.woff?2cd9aa - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=mesh
    • > Network (severe)
    wp-content/plugins/mesh/assets/images/mesh-tagline-logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=mesh
    • > Network (severe)
    wp-content/plugins/mesh/images/meshbackground@2x.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: bootstrap, layout builder, responsive, site builder, linchpin...

mesh/mesh.php 92% from 13 tests

"Mesh - Page Builder" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")

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
Success! There were no dangerous files found in this plugin13,110 lines of code in 166 files:
LanguageFilesBlank linesComment linesLines of code
PHP1572,2262,8948,835
CSS2251492,189
JavaScript35065261,567
JSON200282
Markdown2550237

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.36
Average class complexity7.17
▷ Minimum class complexity1.00
▷ Maximum class complexity161.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes125
▷ Abstract classes10.80%
▷ Concrete classes12499.20%
▷ Final classes00.00%
Methods308
▷ Static methods4815.58%
▷ Public methods22472.73%
▷ Protected methods7323.70%
▷ Private methods113.57%
Functions45
▷ Named functions3884.44%
▷ Anonymous functions715.56%
Constants11
▷ Global constants654.55%
▷ Class constants545.45%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin