99% ocl-widget

Code Review | Contact widget - Ocl.to

WordPress plugin Contact widget - Ocl.to scored 99% from 54 tests.

About plugin

  • Plugin page: ocl-widget
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7.1
  • WordPress version: 5.8.1
  • First release: Apr 27, 2021
  • Latest release: Apr 27, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: getreveltd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 77 total downloads

Benchmarks

Plugin footprint Passed 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼138.61ms] Passed 4 tests

Server-side resources used by Contact widget - Ocl.to
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0234.66 ▲1.63
Dashboard /wp-admin3.08 ▲0.0351.00 ▲7.74
Posts /wp-admin/edit.php3.13 ▲0.0341.93 ▼3.01
Add New Post /wp-admin/post-new.php5.45 ▲0.0295.17 ▼556.54
Media Library /wp-admin/upload.php3.03 ▲0.0234.33 ▲3.48

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Contact widget - Ocl.to: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,694 ▲9815.90 ▲0.3710.62 ▲1.1946.64 ▲0.98
Dashboard /wp-admin2,988 ▲575.94 ▼0.21160.35 ▲10.78106.32 ▼16.82
Posts /wp-admin/edit.php2,754 ▲152.72 ▲0.0179.31 ▲11.1784.71 ▼2.01
Add New Post /wp-admin/post-new.php1,693 ▲8918.66 ▲0.10394.93 ▼1.81114.18 ▲9.14
Media Library /wp-admin/upload.php1,763 ▼445.00 ▲0.00158.01 ▲2.26114.48 ▼1.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

ocl-widget/ord_sys.php 92% from 13 tests

This is the main PHP file of "Contact widget - Ocl.to" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ocl-widget.php" instead of "ord_sys.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin322 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4407171
CSS1250131
JavaScript16020

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin