89% content-author-accessibility-preview

Code Review | Content Author Accessibility Preview

WordPress plugin Content Author Accessibility Preview scored89%from 54 tests.

About plugin

  • Plugin page: content-author-ac...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Apr 2, 2019
  • Latest release: Jul 16, 2021
  • Number of updates: 9
  • Update frequency: every 93.0 days
  • Top authors: Boswall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /931 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.43ms] Passed 4 tests

This is a short check of server-side resources used by Content Author Accessibility Preview
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.75 ▲2.92
Dashboard /wp-admin3.39 ▲0.0551.53 ▼12.59
Posts /wp-admin/edit.php3.51 ▲0.1547.91 ▼2.26
Add New Post /wp-admin/post-new.php5.97 ▲0.0987.91 ▼6.12
Media Library /wp-admin/upload.php3.32 ▲0.0937.30 ▼0.73
Content Author Accessibility Preview /wp-admin/options-general.php?page=caa11yp3.2833.83

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
caa11yp_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Content Author Accessibility Preview
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.16 ▼0.211.76 ▲0.0144.45 ▼4.52
Dashboard /wp-admin2,196 ▲165.56 ▼0.0795.44 ▲0.8342.39 ▼0.85
Posts /wp-admin/edit.php2,107 ▲71.96 ▼0.0834.32 ▼2.9535.82 ▼0.91
Add New Post /wp-admin/post-new.php1,532 ▲123.18 ▼0.24685.47 ▲47.4557.38 ▲1.96
Media Library /wp-admin/upload.php1,401 ▲44.18 ▲0.02100.32 ▼3.5344.99 ▲2.52
Content Author Accessibility Preview /wp-admin/options-general.php?page=caa11yp1,1212.2029.2931.92

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: alt text, a11y, accessibility, aria, wcag...

content-author-accessibility-preview/content-author-accessibility-preview.php 85% from 13 tests

The main PHP file in "Content Author Accessibility Preview" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin573 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP346164446
CSS131172
JavaScript291755

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin