84% equallyai

Code Review | Web Accessibility Compliance by Equally AI

WordPress plugin Web Accessibility Compliance by Equally AI scored84%from 54 tests.

About plugin

  • Plugin page: equallyai
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.3-6.0.3
  • WordPress version: 6.3.1
  • First release: Sep 25, 2022
  • Latest release: Nov 16, 2022
  • Number of updates: 10
  • Update frequency: every 5.7 days
  • Top authors: equallyai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /399 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.03ms] Passed 4 tests

Server-side resources used by Web Accessibility Compliance by Equally AI
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.16 ▼0.54
Dashboard /wp-admin3.33 ▲0.0345.52 ▼8.73
Posts /wp-admin/edit.php3.45 ▲0.0946.33 ▼4.63
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.11 ▲1.79
Media Library /wp-admin/upload.php3.25 ▲0.0337.64 ▲4.62

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Web Accessibility Compliance by Equally AI: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.45 ▲0.081.77 ▲0.0139.78 ▼1.07
Dashboard /wp-admin2,222 ▲405.81 ▲0.86100.88 ▼6.6538.71 ▼7.69
Posts /wp-admin/edit.php2,105 ▲161.99 ▲0.0134.79 ▼6.8533.63 ▼6.83
Add New Post /wp-admin/post-new.php1,555 ▲3218.37 ▼4.74598.92 ▲2.0950.85 ▲2.43
Media Library /wp-admin/upload.php1,404 ▲194.19 ▼0.1098.71 ▼3.3343.95 ▼0.84

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_EquallyAi_Default_Properties' not found in wp-content/plugins/equallyai/classes/class-create-admin-menu.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_EquallyAi_Default_Properties' not found in wp-content/plugins/equallyai/classes/class-load-default-scripts.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/equallyai/classes/class-frontend-manipulation.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_EquallyAi_Default_Properties' not found in wp-content/plugins/equallyai/classes/class-create-settings-routes.php:5

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: equallyai, accessibility, widget

equallyai/wp-equally-ai.php 92% from 13 tests

"Web Accessibility Compliance by Equally AI" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("equallyai.php" instead of "wp-equally-ai.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin690 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript7189206492
PHP63320126
JSON10034
CSS10031
Markdown1307

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.20
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png34.24KB14.26KB▼ 58.34%