10% i-dont-endorse-wikipedia

Code Review | I don't endorse Wikipedia

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

About plugin

  • Plugin page: i-dont-endorse-wi...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-5.6
  • WordPress version: 6.3.1
  • First release: Aug 25, 2014
  • Latest release: Nov 24, 2020
  • Number of updates: 6
  • Update frequency: every 380.7 days
  • Top authors: andreapernici (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /720 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/i-dont-endorse-wikipedia/nofollow-wikipedia.php+41
    Methods with the same name as their class will not be constructors in a future version of PHP; AndreaNofollowWikipedia has a deprecated constructor

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

This is a short check of server-side resources used by I don't endorse Wikipedia
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7115.36 ▼26.58
Dashboard /wp-admin2.79 ▼0.5120.02 ▼35.11
Posts /wp-admin/edit.php2.79 ▼0.5618.88 ▼38.29
Add New Post /wp-admin/post-new.php2.79 ▼3.0917.06 ▼86.40
Media Library /wp-admin/upload.php2.79 ▼0.4417.64 ▼17.84

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
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for I don't endorse Wikipedia
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.74 ▲0.452.10 ▲0.4245.07 ▲0.54
Dashboard /wp-admin2,209 ▲215.02 ▼0.88117.82 ▲9.1442.24 ▲1.78
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0336.05 ▼5.4033.61 ▼3.90
Add New Post /wp-admin/post-new.php1,528 ▼622.97 ▲4.73669.24 ▲18.5457.04 ▲0.70
Media Library /wp-admin/upload.php1,382 ▼64.29 ▲0.08106.61 ▼2.4647.05 ▲2.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+308
    Non-static method AndreaNofollowWikipedia::Enable() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/i-dont-endorse-wikipedia/nofollow-wikipedia.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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Wikipedia is not your friend and is not the truth. It use your content and doesn't endorse you putting a political nofollow to everything. If Wikipedia steals contents without endorsing the source and then Google automatically give credit in a stupid way to Wikipedia then the only thing we can do is to Nofollow Wikipedia.) image required
The official readme.txt might help

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

The main PHP script in "I don't endorse Wikipedia" version 1.0.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("i-dont-endorse-wikipedia.php" instead of "nofollow-wikipedia.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin56 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1252956

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin