84% edgemesh

Code Review | Edgemesh

WordPress plugin Edgemesh scored84%from 54 tests.

About plugin

  • Plugin page: edgemesh
  • Plugin version: 5.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: May 9, 2019
  • Latest release: Aug 15, 2022
  • Number of updates: 26
  • Update frequency: every 45.9 days
  • Top authors: edgemesh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /2,244 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▲0.71ms] Passed 4 tests

A check of server-side resources used by Edgemesh
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.24 ▲7.48
Dashboard /wp-admin3.39 ▲0.0947.57 ▼1.78
Posts /wp-admin/edit.php3.50 ▲0.1544.22 ▲3.77
Add New Post /wp-admin/post-new.php5.99 ▲0.1078.90 ▼0.23
Media Library /wp-admin/upload.php3.31 ▲0.0833.39 ▲1.06
Edgemesh /wp-admin/options-general.php?page=edgemesh-admin3.2932.39

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Edgemesh
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.50 ▼0.124.01 ▲2.5845.15 ▲1.87
Dashboard /wp-admin2,197 ▲175.54 ▼0.1185.10 ▼12.0435.58 ▼6.15
Posts /wp-admin/edit.php2,105 ▲81.99 ▲0.0334.89 ▼3.7137.46 ▲1.21
Add New Post /wp-admin/post-new.php1,533 ▼423.49 ▲5.33675.24 ▲75.2155.14 ▼9.08
Media Library /wp-admin/upload.php1,408 ▲84.19 ▼0.0298.95 ▲7.0142.64 ▲3.14
Edgemesh /wp-admin/options-general.php?page=edgemesh-admin9802.0023.1928.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/edgemesh/admin/partials/edgemesh-admin-display.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edgemesh/includes/default-filters.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Scripts' not found in wp-content/plugins/edgemesh/includes/class-edgemesh-service-worker.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were 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
6 plugin tags: optimization, pwa, cache, performance, seo...

edgemesh/edgemesh.php Passed 13 tests

"Edgemesh" version 5.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
25 characters long description:
Accelerate your business.

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
There were no executable files found in this plugin470 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP12106574452
CSS13014
JavaScript22274

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.33
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods2781.82%
▷ Protected methods26.06%
▷ Private methods412.12%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.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
There are no PNG files in this plugin