72% aikezi-solutions

Code Review | Aikezi Solutions

WordPress plugin Aikezi Solutions scored72%from 54 tests.

About plugin

  • Plugin page: aikezi-solutions
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Dec 2, 2022
  • Latest release: Jul 4, 2023
  • Number of updates: 5
  • Update frequency: every 44.2 days
  • Top authors: aikezi (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /615 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.07MB] [CPU: ▼4.68ms] Passed 4 tests

Analyzing server-side resources used by Aikezi Solutions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.10 ▼6.78
Dashboard /wp-admin3.39 ▲0.0951.66 ▼4.20
Posts /wp-admin/edit.php3.50 ▲0.1549.58 ▼2.54
Add New Post /wp-admin/post-new.php5.97 ▲0.0898.49 ▼5.18
Media Library /wp-admin/upload.php3.31 ▲0.0840.14 ▼0.17
Aikezi Addon /wp-admin/admin.php?page=aikezi-solutions-aikezi-addon3.2832.36
Aikezi Solutions /wp-admin/admin.php?page=aikezi-solutions3.2932.41
Donate /wp-admin/admin.php?page=aikezi-solutions-aikezi-donate3.2833.40

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
aikezi_solutions_version
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Aikezi Solutions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲6113.32 ▼0.984.44 ▲2.4347.62 ▲3.83
Dashboard /wp-admin2,254 ▲515.85 ▼0.01113.48 ▼17.6589.14 ▲45.66
Posts /wp-admin/edit.php2,136 ▲362.01 ▲0.0136.15 ▼0.1332.66 ▼2.91
Add New Post /wp-admin/post-new.php1,551 ▲1823.13 ▼0.33689.72 ▲75.9656.12 ▼0.55
Media Library /wp-admin/upload.php1,418 ▲184.23 ▼0.00105.94 ▼5.7097.24 ▲50.31
Aikezi Addon /wp-admin/admin.php?page=aikezi-solutions-aikezi-addon8232.0228.1629.12
Aikezi Solutions /wp-admin/admin.php?page=aikezi-solutions1,2122.1527.8137.67
Donate /wp-admin/admin.php?page=aikezi-solutions-aikezi-donate8742.0128.8634.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 20 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=aikezi-solutions
    • > Notice in wp-content/plugins/aikezi-solutions/includes/views/form-group.php+20
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/aikezi-solutions/includes/views/aikezi-addon.php
    • > /wp-content/plugins/aikezi-solutions/includes/views/shortcode-section.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/aikezi-solutions/includes/views/aikezi-donate.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/aikezi-solutions/includes/views/info-form.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/aikezi-solutions/includes/views/contact-info-page.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: aikezi, info shortcode, infomation, aikezi solutions, infomation shortcode...

aikezi-solutions/aikezi-solutions.php 77% from 13 tests

"Aikezi Solutions" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 280 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Domain Path: The domain path folder does not exist ("/languages/")

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
Good job! No executable or dangerous file extensions detected656 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP124861503
CSS382139
JavaScript15614

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.67
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
7 PNG files occupy 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/buy-me-a-coffee-2.png40.27KB15.34KB▼ 61.91%
assets/images/plugin-icon-1.png4.30KB0.63KB▼ 85.29%
assets/images/buy-me-a-coffee-4.png73.13KB29.04KB▼ 60.28%
assets/images/plugin-icon-2.png2.15KB0.58KB▼ 72.99%
assets/images/icon.png40.73KB13.89KB▼ 65.89%