84% equalweb

Code Review | Equalweb Accessibility

WordPress plugin Equalweb Accessibility scored84%from 54 tests.

About plugin

  • Plugin page: equalweb
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Mar 29, 2021
  • Latest release: Jul 12, 2023
  • Number of updates: 18
  • Update frequency: every 46.7 days
  • Top authors: equalweb (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /5,459 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.92ms] Passed 4 tests

A check of server-side resources used by Equalweb Accessibility
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.09 ▲4.20
Dashboard /wp-admin3.34 ▲0.0443.03 ▼3.38
Posts /wp-admin/edit.php3.39 ▲0.0446.29 ▼0.99
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.31 ▼18.07
Media Library /wp-admin/upload.php3.26 ▲0.0433.88 ▲2.77
EqualWeb /wp-admin/options-general.php?page=equalweb3.2333.90

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Equalweb Accessibility
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.66 ▼0.581.75 ▲0.0244.69 ▲4.75
Dashboard /wp-admin2,210 ▲185.83 ▲0.9296.92 ▼23.5438.29 ▼3.72
Posts /wp-admin/edit.php2,090 ▲12.02 ▲0.0235.39 ▼1.3931.65 ▼3.09
Add New Post /wp-admin/post-new.php1,536 ▲1523.41 ▲0.15666.69 ▲40.8349.18 ▲6.09
Media Library /wp-admin/upload.php1,389 ▲44.15 ▼0.0298.22 ▼5.3941.07 ▼2.43
EqualWeb /wp-admin/options-general.php?page=equalweb1,1752.0323.7570.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/equalweb/equalweb.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

equalweb/equalweb.php 92% from 13 tests

The main PHP script in "Equalweb Accessibility" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin612 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1310476
PHP22264136

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/wp-plugin-logo-small.png5.95KB3.56KB▼ 40.19%
assets/img/wp-plugin-step-3.png5.45KB2.88KB▼ 47.07%
assets/img/wp-plugin-logo.png13.12KB6.43KB▼ 51.03%
assets/img/wp-plugin-step-1.png5.62KB3.06KB▼ 45.46%
assets/img/wp-plugin-js-code.png2.40KB1.45KB▼ 39.81%