78% lokalyze-schedule-a-meeting

Code Review | Lokalyze - Schedule A Meeting

WordPress plugin Lokalyze - Schedule A Meeting scored78%from 54 tests.

About plugin

  • Plugin page: lokalyze-schedule...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.6
  • WordPress version: 6.3.1
  • First release: Apr 28, 2021
  • Latest release: Apr 28, 2021
  • Number of updates: 4
  • Update frequency: every 10.5 days
  • Top authors: lokalyze (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.43ms] Passed 4 tests

This is a short check of server-side resources used by Lokalyze - Schedule A Meeting
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.46 ▼1.85
Dashboard /wp-admin3.34 ▲0.0451.14 ▲0.52
Posts /wp-admin/edit.php3.39 ▲0.0351.91 ▼1.78
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.18 ▲8.64
Media Library /wp-admin/upload.php3.26 ▲0.0339.05 ▲1.38
Schedule a Meeting /wp-admin/options-general.php?page=schedule-a-meeting3.5135.90

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Lokalyze - Schedule A Meeting
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲11713.46 ▼1.148.72 ▲6.6136.16 ▼8.00
Dashboard /wp-admin2,199 ▲195.50 ▼0.1285.44 ▼8.4337.27 ▼4.10
Posts /wp-admin/edit.php2,101 ▼21.97 ▼0.0639.36 ▼2.0136.63 ▼0.03
Add New Post /wp-admin/post-new.php1,538 ▲118.01 ▼0.39621.41 ▼61.1266.30 ▲0.05
Media Library /wp-admin/upload.php1,404 ▲44.16 ▲0.04102.13 ▼13.9044.07 ▼5.47
Schedule a Meeting /wp-admin/options-general.php?page=schedule-a-meeting3,3242.0326.4933.08

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=schedule-a-meeting
    • > Warning in wp-content/plugins/lokalyze-schedule-a-meeting/lokalyze-schedule-a-meeting.php+188
    Use of undefined constant CNB_VERSION - assumed 'CNB_VERSION' (this will throw an Error in a future version of PHP)

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lokalyze-schedule-a-meeting/lokalyze-schedule-a-meeting.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === lokalyze-schedule-a-meeting === )
Please take inspiration from this readme.txt

lokalyze-schedule-a-meeting/lokalyze-schedule-a-meeting.php Passed 13 tests

This is the main PHP file of "Lokalyze - Schedule A Meeting" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Schedule a meeting with person and receive mail notifications.

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
Everything looks great! No dangerous files found in this plugin4,104 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS111011883,617
JavaScript117361336
PHP12522151

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin