10% i-dont-endorse-google

Code Review | I don't endorse Google

WordPress plugin I don't endorse Google scored10%from 54 tests.

About plugin

  • Plugin page: i-dont-endorse-go...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-5.6
  • WordPress version: 6.3.1
  • First release: Oct 30, 2013
  • Latest release: Nov 24, 2020
  • Number of updates: 10
  • Update frequency: every 258.2 days
  • Top authors: andreapernici (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,143 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/i-dont-endorse-google/nofollow-google.php+41
    Methods with the same name as their class will not be constructors in a future version of PHP; AndreaNofollowGoogle has a deprecated constructor

Server metrics [RAM: ▼1.22MB] [CPU: ▼40.25ms] Passed 4 tests

Analyzing server-side resources used by I don't endorse Google
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.76 ▼0.7113.47 ▼24.59
Dashboard /wp-admin2.79 ▼0.5117.49 ▼27.75
Posts /wp-admin/edit.php2.79 ▼0.5618.78 ▼30.84
Add New Post /wp-admin/post-new.php2.79 ▼3.0919.42 ▼77.81
Media Library /wp-admin/upload.php2.79 ▼0.4414.01 ▼24.48

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by I don't endorse Google
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.351.68 ▼0.1838.93 ▼5.38
Dashboard /wp-admin2,203 ▲154.83 ▼1.0799.72 ▼3.9940.16 ▼4.59
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0539.99 ▼1.1035.06 ▼1.73
Add New Post /wp-admin/post-new.php1,547 ▲518.09 ▲0.14619.67 ▲5.7461.54 ▲9.53
Media Library /wp-admin/upload.php1,385 ▼64.23 ▲0.04109.13 ▲5.0746.11 ▲0.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+308
    Non-static method AndreaNofollowGoogle::Enable() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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 everything seems fine, this is not 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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/i-dont-endorse-google/nofollow-google.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Google becomes really ridicuolous with is war against links. Nofollow is unnatural per-se. Full Stop.) image required
Please take inspiration from this readme.txt

i-dont-endorse-google/nofollow-google.php 92% from 13 tests

This is the main PHP file of "I don't endorse Google" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("i-dont-endorse-google.php" instead of "nofollow-google.php")

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 detected354 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12529354

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin