89% aw-target-blank

Code Review | Aw target blank

WordPress plugin Aw target blank scored89%from 54 tests.

About plugin

  • Plugin page: aw-target-blank
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.0.3
  • WordPress version: 6.3.1
  • First release: Aug 19, 2018
  • Latest release: Feb 17, 2019
  • Number of updates: 5
  • Update frequency: every 36.4 days
  • Top authors: farhanhaider73 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,579 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.08MB] [CPU: ▼0.83ms] Passed 4 tests

Server-side resources used by Aw target blank
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.47 ▼1.77
Dashboard /wp-admin3.40 ▲0.0949.43 ▲0.74
Posts /wp-admin/edit.php3.43 ▲0.0846.70 ▲1.19
Add New Post /wp-admin/post-new.php6.11 ▲0.2282.05 ▼3.47
Media Library /wp-admin/upload.php3.34 ▲0.1134.82 ▲2.86

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Aw target blank
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲5913.70 ▼0.701.92 ▼0.0541.10 ▼7.76
Dashboard /wp-admin2,222 ▲375.87 ▲0.0197.41 ▼7.1040.69 ▼0.91
Posts /wp-admin/edit.php2,114 ▲252.06 ▲0.0639.61 ▲1.1335.69 ▲2.39
Add New Post /wp-admin/post-new.php1,533 ▼023.41 ▲0.30658.42 ▼20.6654.99 ▼12.77
Media Library /wp-admin/upload.php1,410 ▲224.22 ▲0.04109.79 ▲4.3547.94 ▲0.68

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: "#"
  • Screenshots: A description for screenshot #2 is missing in aw-target-blank/assets to your readme.txt
The official readme.txt is a good inspiration

aw-target-blank/AW-target-blank.php 92% from 13 tests

Analyzing the main PHP file in "Aw target blank" version 1.0
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aw-target-blank.php" instead of "AW-target-blank.php")

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 plugin165 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP54020161
CSS2002
JavaScript2042

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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