83% external-links-advertisement-note

Code Review | External Links Advertisement Note

WordPress plugin External Links Advertisement Note scored 83% from 54 tests.

About plugin

  • Plugin page: external-links-ad...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2019
  • Latest release: Aug 1, 2019
  • Number of updates: 25
  • Update frequency: every 0.0 days
  • Top authors: schlegld (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 556 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲2.36ms] Passed 4 tests

An overview of server-side resources used by External Links Advertisement Note
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0343.77 ▲2.87
Dashboard /wp-admin3.32 ▲0.0256.40 ▲11.61
Posts /wp-admin/edit.php3.37 ▲0.0246.41 ▼0.83
Add New Post /wp-admin/post-new.php5.92 ▲0.0495.35 ▲4.97
Media Library /wp-admin/upload.php3.25 ▲0.0234.06 ▲2.42
External Links Advertisement Note /wp-admin/options-general.php?page=bfelan3.2729.48

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for External Links Advertisement Note
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲17213.91 ▼0.7010.79 ▲8.9645.39 ▼6.70
Dashboard /wp-admin2,211 ▲235.77 ▲0.89102.24 ▼5.0839.19 ▼6.77
Posts /wp-admin/edit.php2,097 ▲82.01 ▼0.0036.03 ▲1.3934.00 ▼2.86
Add New Post /wp-admin/post-new.php1,536 ▼823.13 ▲4.83640.60 ▲4.4462.66 ▲14.49
Media Library /wp-admin/upload.php1,396 ▲54.24 ▲0.0198.65 ▼2.7142.60 ▼2.22
External Links Advertisement Note /wp-admin/options-general.php?page=bfelan9032.0223.9524.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/external-links-advertisement-note/public/partials/bfelan-public-display.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
Please take inspiration from this readme.txt

external-links-advertisement-note/bfelan.php 85% from 13 tests

This is the main PHP file of "External Links Advertisement Note" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("external-links-advertisement-note.php" instead of "bfelan.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected376 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12169581351
CSS22815
JavaScript295510

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity4.43
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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