84% wp-tota11y

Code Review | WP Tota11y

WordPress plugin WP Tota11y scored84%from 54 tests.

About plugin

  • Plugin page: wp-tota11y
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Jun 17, 2015
  • Latest release: Aug 7, 2023
  • Number of updates: 49
  • Update frequency: every 60.7 days
  • Top authors: mpol (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /20,206 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.85ms] Passed 4 tests

An overview of server-side resources used by WP Tota11y
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.03 ▼4.05
Dashboard /wp-admin3.31 ▲0.0150.00 ▼2.48
Posts /wp-admin/edit.php3.36 ▲0.0046.69 ▼6.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.02 ▼18.65
Media Library /wp-admin/upload.php3.23 ▲0.0035.55 ▲0.02

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

WP Tota11y: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,503 ▲75715.83 ▲1.2018.31 ▲16.7938.16 ▼2.60
Dashboard /wp-admin2,490 ▲2986.38 ▲1.46123.41 ▲18.9744.36 ▼2.33
Posts /wp-admin/edit.php2,373 ▲2843.18 ▲1.1449.07 ▲12.9336.29 ▼0.45
Add New Post /wp-admin/post-new.php1,656 ▲13721.39 ▼2.04694.94 ▲28.9953.22 ▼0.07
Media Library /wp-admin/upload.php1,663 ▲2785.61 ▲1.38113.05 ▲3.5942.58 ▼5.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-tota11y/wp-tota11y.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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 require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-tota11y === )
The official readme.txt is a good inspiration

wp-tota11y/wp-tota11y.php Passed 13 tests

Analyzing the main PHP file in "WP Tota11y" version 1.2.0
116 characters long description:
WP Tota11y is an accessibility visualization toolkit. It can point out many common problems regarding accessibility.

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 plugin12 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP112279
JavaScript10493

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin