84% adstxt-menage

Code Review | ADSTXT MENAGE

WordPress plugin ADSTXT MENAGE scored84%from 54 tests.

About plugin

  • Plugin page: adstxt-menage
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.3
  • WordPress version: 6.3.1
  • First release: Jan 31, 2019
  • Latest release: Feb 4, 2019
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: marchiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /832 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.15ms] Passed 4 tests

This is a short check of server-side resources used by ADSTXT MENAGE
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.02 ▲5.31
Dashboard /wp-admin3.32 ▲0.0149.82 ▲0.02
Posts /wp-admin/edit.php3.37 ▲0.0149.39 ▲2.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.12 ▼8.55
Media Library /wp-admin/upload.php3.24 ▲0.0136.48 ▲1.51
ADS Settings /wp-admin/options-general.php?page=ads-setting-admin3.2132.06

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for ADSTXT MENAGE
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.55 ▼0.831.74 ▼0.4542.37 ▼2.54
Dashboard /wp-admin2,210 ▲225.91 ▲1.0298.65 ▼18.2039.10 ▼7.91
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0438.55 ▲2.6334.73 ▲0.32
Add New Post /wp-admin/post-new.php1,536 ▲2223.18 ▲5.49647.39 ▼52.5754.95 ▲1.27
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.0395.85 ▼12.6644.14 ▼5.99
ADS Settings /wp-admin/options-general.php?page=ads-setting-admin7762.0324.5929.48

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/adstxt-menage/adstxt-menage.php:132

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: adstxt, ads

adstxt-menage/adstxt-menage.php Passed 13 tests

The primary PHP file in "ADSTXT MENAGE" version 1.0.0 is used by WordPress to initiate all plugin functionality
31 characters long description:
Plugin per gestire file ads.txt

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
No dangerous file extensions were detected81 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1143881

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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 were not PNG files found in your plugin