89% bbp-dofollow

Code Review | BBP DoFollow

WordPress plugin BBP DoFollow scored89%from 54 tests.

About plugin

  • Plugin page: bbp-dofollow
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.2
  • WordPress version: 6.3.1
  • First release: Jan 9, 2019
  • Latest release: Jan 10, 2019
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: sockscap64 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,255 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.51ms] Passed 4 tests

Analyzing server-side resources used by BBP DoFollow
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.82 ▲5.09
Dashboard /wp-admin3.34 ▲0.0350.57 ▼3.32
Posts /wp-admin/edit.php3.39 ▲0.0349.24 ▼7.57
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.28 ▼17.32
Media Library /wp-admin/upload.php3.26 ▲0.0336.82 ▲2.16

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by BBP DoFollow
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.32 ▼0.031.89 ▲0.0742.08 ▼1.49
Dashboard /wp-admin2,198 ▲185.59 ▲0.0189.44 ▼1.6138.69 ▼12.57
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0437.04 ▼6.1037.38 ▼2.55
Add New Post /wp-admin/post-new.php1,526 ▼1223.64 ▲0.86653.11 ▲5.6048.25 ▼13.93
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.03103.34 ▼5.6845.08 ▼0.79

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: bbpress, nofollow, seo, dofollow

bbp-dofollow/bbpress-dofollow.php 85% from 13 tests

The principal PHP file in "BBP DoFollow" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.9" instead of "4.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bbp-dofollow.php" instead of "bbpress-dofollow.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
There were no executable files found in this plugin78 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22711978

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin