84% authorized-digital-sellers-txt

Code Review | Authorized Digital Sellers TXT

WordPress plugin Authorized Digital Sellers TXT scored 84% from 54 tests.

About plugin

  • Plugin page: authorized-digita...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2017
  • Latest release: Dec 6, 2017
  • Number of updates: 7
  • Update frequency: every 1.9 days
  • Top authors: jeffreyvr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 982 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.17ms] Passed 4 tests

An overview of server-side resources used by Authorized Digital Sellers TXT
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.95 ▼3.33
Dashboard /wp-admin3.34 ▲0.0445.58 ▼2.67
Posts /wp-admin/edit.php3.39 ▲0.0348.02 ▼2.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.54 ▲8.38
Media Library /wp-admin/upload.php3.26 ▲0.0333.77 ▼0.42
ADS.txt /wp-admin/options-general.php?page=authorized-digital-sellers-txt3.2332.89

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
authorized_digital_sellers_txt_flush_rewrite_rules_flag
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Authorized Digital Sellers TXT
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.31 ▼1.073.89 ▲2.1340.51 ▼1.19
Dashboard /wp-admin2,213 ▲275.88 ▲0.9294.84 ▼13.4739.41 ▼2.17
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0439.11 ▲3.2335.27 ▲0.79
Add New Post /wp-admin/post-new.php1,522 ▲323.07 ▼0.12596.34 ▼26.6355.39 ▼1.94
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0395.04 ▼1.5140.57 ▼2.26
ADS.txt /wp-admin/options-general.php?page=authorized-digital-sellers-txt8252.0222.6935.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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
Good news, no errors were detected

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/authorized-digital-sellers-txt/partials/admin-settings-page.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
1 plugin tags: ads_txt

authorized-digital-sellers-txt/authorized-digital-sellers-txt.php 92% from 13 tests

The main PHP file in "Authorized Digital Sellers TXT" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected233 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35686154
PO File1162179

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin