84% nofollow-adder

Code Review | Nofollow Adder Wordpress Plugin

WordPress plugin Nofollow Adder Wordpress Plugin scored84%from 54 tests.

About plugin

  • Plugin page: nofollow-adder
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: May 31, 2018
  • Latest release: May 31, 2018
  • Number of updates: 5
  • Update frequency: every 1.6 days
  • Top authors: pixelstreamcreations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /524 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.74ms] Passed 4 tests

A check of server-side resources used by Nofollow Adder Wordpress Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0048.18 ▼0.53
Dashboard /wp-admin3.31 ▲0.0148.86 ▼8.71
Posts /wp-admin/edit.php3.36 ▲0.0048.62 ▼6.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.37 ▼14.49
Media Library /wp-admin/upload.php3.24 ▲0.0039.86 ▼1.67

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Nofollow Adder Wordpress Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲13713.71 ▼0.6510.61 ▲8.8241.88 ▼4.51
Dashboard /wp-admin2,195 ▲155.60 ▲0.0291.36 ▼14.2742.22 ▼0.98
Posts /wp-admin/edit.php2,100 ▲31.96 ▼0.0237.54 ▼2.1134.36 ▲0.98
Add New Post /wp-admin/post-new.php1,528 ▲222.80 ▼0.40684.80 ▼16.1855.67 ▲5.08
Media Library /wp-admin/upload.php1,400 ▼34.22 ▲0.04112.29 ▲0.0049.28 ▲3.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nofollow-adder/index.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: external links nofollow, nofollow adder wordpress plugin, nofollow, nofollow adder, rel nofollow...

nofollow-adder/index.php 85% from 13 tests

Analyzing the main PHP file in "Nofollow Adder Wordpress Plugin" version 1.0
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("nofollow-adder.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 241 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected33 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript10021
PHP11712

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin