78% webmaxy

Code Review | WebMaxy

WordPress plugin WebMaxy scored78%from 54 tests.

About plugin

  • Plugin page: webmaxy
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Aug 1, 2022
  • Latest release: Aug 9, 2022
  • Number of updates: 6
  • Update frequency: every 2.3 days
  • Top authors: webmaxy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /144 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
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.41ms] Passed 4 tests

This is a short check of server-side resources used by WebMaxy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.12 ▲0.27
Dashboard /wp-admin3.38 ▲0.0847.27 ▼3.61
Posts /wp-admin/edit.php3.50 ▲0.1449.32 ▼0.57
Add New Post /wp-admin/post-new.php5.98 ▲0.1090.35 ▼4.81
Media Library /wp-admin/upload.php3.31 ▲0.0838.48 ▼0.65

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WebMaxy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲15213.80 ▼0.908.58 ▲6.9141.19 ▲1.51
Dashboard /wp-admin2,211 ▲315.55 ▼0.1184.14 ▼2.3338.58 ▼3.00
Posts /wp-admin/edit.php2,113 ▲132.03 ▲0.0135.97 ▼0.1435.12 ▼0.06
Add New Post /wp-admin/post-new.php1,540 ▲523.27 ▲5.10652.73 ▼22.8360.54 ▼10.11
Media Library /wp-admin/upload.php1,416 ▲164.21 ▼0.02107.51 ▲0.2544.95 ▼0.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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 | 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 fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/webmaxy/admin/partials/webmaxy-admin-display.php
    • > /wp-content/plugins/webmaxy/public/partials/webmaxy-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/webmaxy/admin/partials/webmaxy-admin-settings-display.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% 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
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === webmaxy === )
  • Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

webmaxy/webmaxy.php Passed 13 tests

The principal PHP file in "WebMaxy" v. 1.0.0 is loaded by WordPress automatically on each request
103 characters long description:
WebMaxy Wordpress plugins allows you to integrate WebMaxy Session Recording in your website seemlessly.

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
No dangerous file extensions were detected324 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13129551309
Markdown1509
JavaScript24546
CSS2080

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.86
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods39.38%
▷ Public methods2681.25%
▷ Protected methods00.00%
▷ Private methods618.75%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected