84% accessibility-new-window-warnings

Code Review | Accessibility New Window Warnings

WordPress plugin Accessibility New Window Warnings scored 84% from 54 tests.

About plugin

  • Plugin page: accessibility-new...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 27, 2021
  • Latest release: Aug 29, 2023
  • Number of updates: 13
  • Update frequency: every 56.3 days
  • Top authors: stevejonesdev (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

400+ active / 2,850 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.61ms] Passed 4 tests

Analyzing server-side resources used by Accessibility New Window Warnings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.37 ▼8.33
Dashboard /wp-admin3.32 ▲0.0143.56 ▼2.84
Posts /wp-admin/edit.php3.37 ▲0.0144.84 ▼3.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.62 ▼22.24
Media Library /wp-admin/upload.php3.24 ▲0.0132.98 ▼4.06

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Accessibility New Window Warnings: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲17813.63 ▼0.746.96 ▲5.3255.09 ▲7.96
Dashboard /wp-admin2,206 ▲155.87 ▼0.02102.77 ▲0.0540.03 ▼3.26
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0335.63 ▼5.2233.41 ▼1.71
Add New Post /wp-admin/post-new.php1,524 ▼923.62 ▲0.57668.08 ▲47.1560.00 ▲5.78
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0495.50 ▼2.3542.50 ▼1.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/accessibility-new-window-warnings/accessibility-new-window-warnings.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 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
9 plugin tags: open new tab, wcag, ada, accessible, open new window...

accessibility-new-window-warnings/accessibility-new-window-warnings.php Passed 13 tests

The primary PHP file in "Accessibility New Window Warnings" version 1.0.8 is used by WordPress to initiate all plugin functionality
68 characters long description:
Make links that open in a new window accessible by adding a warning.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin141 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript214871
PHP1104533
CSS13026
SVG10011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin