88% aio-contact-lite

Code Review | AIO Contact Lite

WordPress plugin AIO Contact Lite scored 88% from 54 tests.

About plugin

  • Plugin page: aio-contact-lite
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 5.8.1
  • First release: Aug 14, 2020
  • Latest release: Aug 14, 2020
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: harshitpeer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 343 total downloads

Benchmarks

Plugin footprint Passed 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.10MB] [CPU: ▼144.71ms] Passed 4 tests

Analyzing server-side resources used by AIO Contact Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.2143.04 ▲19.62
Dashboard /wp-admin3.15 ▲0.1046.42 ▲7.86
Posts /wp-admin/edit.php3.26 ▲0.1538.73 ▼9.15
Add New Post /wp-admin/post-new.php5.51 ▲0.0796.93 ▼577.46
Media Library /wp-admin/upload.php3.09 ▲0.0934.21 ▼0.10
Settings /wp-admin/admin.php?page=aio-contact-lite-settings3.1134.41
Items /wp-admin/admin.php?page=aio-contact-lite3.1137.26

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AIO Contact Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,854 ▲27216.14 ▲0.6614.38 ▲5.7250.82 ▼0.80
Dashboard /wp-admin3,032 ▲1015.94 ▼0.00139.97 ▼20.60144.30 ▲32.82
Posts /wp-admin/edit.php2,805 ▲662.70 ▲0.0267.52 ▼3.51111.81 ▲9.14
Add New Post /wp-admin/post-new.php1,531 ▼6318.67 ▼0.15389.19 ▼17.42117.62 ▲3.89
Media Library /wp-admin/upload.php1,872 ▲655.03 ▲0.02154.16 ▼7.75142.21 ▲18.38
Settings /wp-admin/admin.php?page=aio-contact-lite-settings2,3355.99124.84140.02
Items /wp-admin/admin.php?page=aio-contact-lite2,1405.91114.12126.92

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
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=aio-contact-lite-settings
    • > Notice in wp-content/plugins/aio-contact-lite/admin/partials/aio-contact-lite-admin-settings.php+75
    Undefined index: button_box_shadow

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
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: aio_custom_css in wp-content/plugins/aio-contact-lite/public/partials/aio-contact-lite-public-display.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/aio-contact-lite/public/partials/aio-contact-lite-public-display.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aio-contact-lite/admin/partials/aio-contact-lite-admin-items.php:13
    • > PHP Notice
      Undefined variable: items in wp-content/plugins/aio-contact-lite/public/partials/aio-contact-lite-public-display.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aio-contact-lite/admin/partials/aio-contact-lite-admin-settings.php:13
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/aio-contact-lite/public/partials/aio-contact-lite-public-display.php on line 21
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/aio-contact-lite/admin/partials/common/aio-contact-lite-admin-header.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: contact option, multiple support, whatsapp, telegram, all in one support...

aio-contact-lite/aio-contact-lite.php 92% from 13 tests

The main PHP script in "AIO Contact Lite" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected10,065 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
SVG40139,509
PHP14147614515
JavaScript721933
CSS73318

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.43
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.49
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin