83% nx-adstxt

Code Review | MAIRDUMONT NETLETIX ads.txt Agent

WordPress plugin MAIRDUMONT NETLETIX ads.txt Agent scored 83% from 54 tests.

About plugin

  • Plugin page: nx-adstxt
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Jun 28, 2018
  • Latest release: Jul 4, 2018
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: mdnx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 706 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.03MB] [CPU: ▼2.71ms] Passed 4 tests

Server-side resources used by MAIRDUMONT NETLETIX ads.txt Agent
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.17 ▼5.67
Dashboard /wp-admin3.33 ▲0.0341.54 ▼3.09
Posts /wp-admin/edit.php3.38 ▲0.0343.44 ▼7.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.07 ▲5.66
Media Library /wp-admin/upload.php3.25 ▲0.0340.98 ▲10.96
MD-NX ads.txt Agent /wp-admin/options-general.php?page=nx-adstxt3.2631.85

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
nx_adstxt
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for MAIRDUMONT NETLETIX ads.txt Agent
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7814.75 ▲0.361.66 ▼0.3637.92 ▼7.56
Dashboard /wp-admin2,210 ▲224.84 ▼0.98113.24 ▼22.4643.19 ▼0.16
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0238.85 ▼6.2534.10 ▼7.49
Add New Post /wp-admin/post-new.php1,540 ▲723.32 ▲0.19696.25 ▲83.7154.31 ▲7.87
Media Library /wp-admin/upload.php1,389 ▲14.21 ▲0.00117.02 ▲17.3744.04 ▼0.42
MD-NX ads.txt Agent /wp-admin/options-general.php?page=nx-adstxt1,0903.4382.5241.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • nx_adstxt
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: name in wp-content/plugins/nx-adstxt/admin/partials/row-url.php on line 6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/nx-adstxt/admin/partials/nx-adstxt-admin-display.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/nx-adstxt/admin/partials/row-url.php:10

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 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #2 in nx-adstxt/assets to your readme.txt
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

nx-adstxt/nx-adstxt.php 92% from 13 tests

The entry point to "MAIRDUMONT NETLETIX ads.txt Agent" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 189 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin938 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1213177485
JavaScript1470218
CSS1244124
PO File12425111

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.14
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods43
▷ Static methods1227.91%
▷ Public methods3581.40%
▷ Protected methods00.00%
▷ Private methods818.60%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/logo-mdnx.png5.27KB2.72KB▼ 48.40%