94% accessibility-new-window-warnings

Code Review | Accessibility New Window Warnings

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

About plugin

  • Plugin page: accessibility-new...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.8
  • WordPress version: 5.9.2
  • First release: Aug 27, 2021
  • Latest release: Aug 28, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: stevejonesdev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 198 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Accessibility New Window Warnings
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0493.09 ▲37.31
Dashboard /wp-admin3.42 ▲0.0134.44 ▼3.43
Posts /wp-admin/edit.php3.65 ▲0.0139.07 ▲1.47
Add New Post /wp-admin/post-new.php6.89 ▼0.0899.20 ▼1,270.95
Media Library /wp-admin/upload.php3.30 ▲0.0124.48 ▼1.04

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, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Accessibility New Window Warnings
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,896 ▲14216.25 ▲0.6611.92 ▲5.232.22 ▼0.19
Dashboard /wp-admin2,892 ▲426.17 ▼0.00126.14 ▼6.31193.50 ▼25.61
Posts /wp-admin/edit.php2,691 ▲33.24 ▲0.0064.37 ▲0.32137.58 ▼6.48
Add New Post /wp-admin/post-new.php1,661 ▼2517.44 ▼0.73469.85 ▼36.43174.07 ▼37.48
Media Library /wp-admin/upload.php1,698 ▲35.53 ▲0.08143.60 ▼21.46256.90 ▲18.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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 plugin_dir_path() in wp-content/plugins/accessibility-new-window-warnings/accessibility-new-window-warnings.php:18

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: open new window, accessible, a11y, section 508, ada...

accessibility-new-window-warnings/accessibility-new-window-warnings.php 85% from 13 tests

Analyzing the main PHP file in "Accessibility New Window Warnings" version 1.0.0
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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 plugin108 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2101046
CSS23229
PHP182722
SVG10011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin