10% ayecode-connect

Code Review | AyeCode Connect

WordPress plugin AyeCode Connect scored10%from 54 tests.

About plugin

  • Plugin page: ayecode-connect
  • Plugin version: 1.2.16
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Feb 22, 2020
  • Latest release: Sep 25, 2023
  • Number of updates: 31
  • Update frequency: every 42.3 days
  • Top authors: stiofansisland (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /177,593 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/ayecode-connect/ayecode-connect.php+144
    Undefined index: query

Server metrics [RAM: ▲1.01MB] [CPU: ▼0.14ms] Passed 4 tests

Server-side resources used by AyeCode Connect
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.46 ▲1.0058.81 ▲18.10
Dashboard /wp-admin4.34 ▲0.9959.24 ▼10.01
Posts /wp-admin/edit.php4.39 ▲1.0363.24 ▲0.87
Add New Post /wp-admin/post-new.php6.98 ▲1.0998.40 ▼5.20
Media Library /wp-admin/upload.php4.26 ▲1.0355.71 ▲13.80
AyeCode UI /wp-admin/options-general.php?page=ayecode-ui-settings4.3045.12
Import Demo Data /wp-admin/admin.php?page=ayecode-demo-content4.3048.38
AyeCode /wp-admin/admin.php?page=ayecode-connect4.3052.12
Font Awesome /wp-admin/options-general.php?page=wp-font-awesome-settings4.2339.93

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

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

Browser metrics Passed 4 tests

AyeCode Connect: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲21613.89 ▼0.4416.80 ▲15.1842.20 ▲1.43
Dashboard /wp-admin2,261 ▲905.51 ▼0.0790.09 ▼0.0738.74 ▼2.66
Posts /wp-admin/edit.php2,166 ▲662.00 ▼0.0139.33 ▲0.4237.39 ▲1.64
Add New Post /wp-admin/post-new.php1,572 ▲4621.75 ▼1.55708.89 ▲21.2560.45 ▼12.42
Media Library /wp-admin/upload.php1,467 ▲704.26 ▲0.14102.64 ▼14.1841.44 ▼7.50
AyeCode UI /wp-admin/options-general.php?page=ayecode-ui-settings1,1162.1527.5232.23
Import Demo Data /wp-admin/admin.php?page=ayecode-demo-content1,6132.9932.9244.99
AyeCode /wp-admin/admin.php?page=ayecode-connect9262.1527.5636.83
Font Awesome /wp-admin/options-general.php?page=wp-font-awesome-settings1,1242.0525.4134.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/functions.php+7434
    unlink(wp-content/mu-plugins/ayecode-connect-filter-fix.php): No such file or directory
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ayecode-connect/vendor/ayecode/wp-ayecode-ui/includes/inc/bs5-js.php
  • 100× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ayecode-connect/vendor/composer/installers/src/Composer/Installers/AglInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ayecode-connect/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ayecode-connect/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ayecode-connect/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ayecode-connect/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ayecode-connect/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ayecode-connect/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ayecode-connect/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ayecode-connect/vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ayecode-connect/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: getpaid, userswp, geodirectory, service, ayecode

ayecode-connect/ayecode-connect.php Passed 13 tests

The main PHP script in "AyeCode Connect" version 1.2.16 is automatically included on every request by WordPress
70 characters long description:
A service plugin letting users connect AyeCode Services to their site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin75,451 lines of code in 485 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript256,3644,21336,659
Sass3155,3026,40126,034
PHP1312,9723,91811,931
PO File1214241561
JSON100245
CSS11013213
SVG1008

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity16.20
▷ Minimum class complexity1.00
▷ Maximum class complexity369.00
Average method complexity5.90
▷ Minimum method complexity1.00
▷ Maximum method complexity93.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes115
▷ Abstract classes10.87%
▷ Concrete classes11499.13%
▷ Final classes00.00%
Methods362
▷ Static methods7620.99%
▷ Public methods31185.91%
▷ Protected methods318.56%
▷ Private methods205.52%
Functions20
▷ Named functions1260.00%
▷ Anonymous functions840.00%
Constants40
▷ Global constants3690.00%
▷ Class constants410.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/connect-site.png60.32KB17.02KB▼ 71.78%
assets/img/ayecode.png29.53KB13.40KB▼ 54.63%