78% aio-contact-lite

Code Review | AIO Contact Lite

WordPress plugin AIO Contact Lite scored78%from 54 tests.

About plugin

  • Plugin page: aio-contact-lite
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 14, 2020
  • Latest release: Jan 27, 2022
  • Number of updates: 9
  • Update frequency: every 59.0 days
  • Top authors: harshitpeer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /951 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by AIO Contact Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.10 ▼2.67
Dashboard /wp-admin3.40 ▲0.0546.63 ▼12.86
Posts /wp-admin/edit.php3.51 ▲0.1549.68 ▲2.26
Add New Post /wp-admin/post-new.php5.98 ▲0.0982.13 ▼12.93
Media Library /wp-admin/upload.php3.32 ▲0.0937.48 ▲2.55
Settings /wp-admin/admin.php?page=aio-contact-lite-settings3.3333.36
Items /wp-admin/admin.php?page=aio-contact-lite3.3337.44

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, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

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 /2,950 ▲18913.79 ▼0.498.16 ▲6.5640.18 ▲1.93
Dashboard /wp-admin2,247 ▲705.59 ▼0.0993.26 ▲3.3844.54 ▲3.85
Posts /wp-admin/edit.php2,149 ▲491.99 ▲0.0139.92 ▲6.4444.53 ▲6.47
Add New Post /wp-admin/post-new.php1,557 ▲3123.19 ▼0.35667.97 ▲30.7960.58 ▲10.18
Media Library /wp-admin/upload.php1,447 ▲474.31 ▲0.1496.80 ▲0.8345.26 ▲2.06
Settings /wp-admin/admin.php?page=aio-contact-lite-settings1,7895.3480.69124.06
Items /wp-admin/admin.php?page=aio-contact-lite1,6475.1378.0375.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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 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 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-items.php:13
    • > 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: Using $this when not in object context in wp-content/plugins/aio-contact-lite/admin/partials/common/aio-contact-lite-admin-header.php: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

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: whatsapp, support button, telegram, contact option, multiple support...

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

The main PHP script in "AIO Contact Lite" version 1.0.1 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
PHP14146614515
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