84% seo-nofollow

Code Review | SEO Nofollow

WordPress plugin SEO Nofollow scored84%from 54 tests.

About plugin

  • Plugin page: seo-nofollow
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2019
  • Latest release: Apr 25, 2019
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: svenrochel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /556 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.01MB] [CPU: ▼8.25ms] Passed 4 tests

An overview of server-side resources used by SEO Nofollow
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.92 ▼1.12
Dashboard /wp-admin3.32 ▼0.0246.32 ▼18.84
Posts /wp-admin/edit.php3.37 ▲0.0247.27 ▼1.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.81 ▼11.03
Media Library /wp-admin/upload.php3.24 ▲0.0233.57 ▼1.93
SEO Nofollow /wp-admin/options-general.php?page=options-nofollow3.2131.49

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by SEO Nofollow
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.47 ▲0.091.69 ▲0.0243.38 ▼0.08
Dashboard /wp-admin2,210 ▲195.83 ▼0.07106.00 ▲6.4037.33 ▼22.79
Posts /wp-admin/edit.php2,093 ▲12.00 ▲0.0239.49 ▼1.9935.45 ▼2.81
Add New Post /wp-admin/post-new.php1,517 ▼1617.43 ▼5.70674.35 ▲24.8858.05 ▲5.32
Media Library /wp-admin/upload.php1,392 ▲14.27 ▲0.0993.55 ▼8.3343.07 ▲0.19
SEO Nofollow /wp-admin/options-general.php?page=options-nofollow8092.0223.2225.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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: 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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-nofollow/nofollow.php:85

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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: affiliate, travel, nofollow, blogger, seo...

seo-nofollow/nofollow.php 85% from 13 tests

"SEO Nofollow" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 347 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("seo-nofollow.php" instead of "nofollow.php")

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
Success! There were no dangerous files found in this plugin61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121561

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin