89% adstxt-guru-connect

Code Review | ads.txt Guru Connect

WordPress plugin ads.txt Guru Connect scored89%from 54 tests.

About plugin

  • Plugin page: adstxt-guru-connect
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.0
  • WordPress version: 6.3.1
  • First release: Jul 9, 2018
  • Latest release: Sep 13, 2022
  • Number of updates: 49
  • Update frequency: every 31.2 days
  • Top authors: adstxtguru (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,827 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼13.42ms] Passed 4 tests

Analyzing server-side resources used by ads.txt Guru Connect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.18 ▼0.63
Dashboard /wp-admin3.37 ▲0.0650.31 ▼13.60
Posts /wp-admin/edit.php3.42 ▲0.0654.43 ▲2.91
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.00 ▼33.54
Media Library /wp-admin/upload.php3.29 ▲0.0632.23 ▼5.91

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ads.txt Guru Connect
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6613.62 ▼0.611.73 ▼0.2144.48 ▲2.08
Dashboard /wp-admin2,233 ▲335.86 ▼0.03106.91 ▲6.0839.57 ▼2.78
Posts /wp-admin/edit.php2,115 ▲122.05 ▼0.0136.19 ▼5.2631.18 ▼3.18
Add New Post /wp-admin/post-new.php1,441 ▼10817.83 ▼5.35575.42 ▼110.0952.67 ▼1.64
Media Library /wp-admin/upload.php1,412 ▲124.22 ▲0.0198.88 ▼2.7143.99 ▼4.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 23 tag instead of maximum 10
You can take inspiration from this readme.txt

adstxt-guru-connect/adstxt_guru_connect.php 85% from 13 tests

Analyzing the main PHP file in "ads.txt Guru Connect" version 1.1.0
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 385 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("adstxt-guru-connect.php" instead of "adstxt_guru_connect.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected358 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP226976358

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.68
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%
Constants1
▷ Global constants1100.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
No PNG files were detected