10% followthis-topic-box

Code Review | followthis topic box

WordPress plugin followthis topic box scored10%from 54 tests.

About plugin

  • Plugin page: followthis-topic-box
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Apr 2, 2013
  • Latest release: Mar 25, 2014
  • Number of updates: 33
  • Update frequency: every 12.5 days
  • Top authors: followthis (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /2,910 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Error in wp-content/plugins/followthis-topic-box/ft_settings.php+95
    Uncaught Error: Class 'Section' not found in wp-content/plugins/followthis-topic-box/ft_settings.php:95
    Stack trace:
    #0 wp-content/plugins/followthis-topic-box/ft.php(5): require_once()
    #1 wp-content/plugins/followthis-topic-box/followthis.php(32): require_once('/var/www/wordpr...')
    #2 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
    #3 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

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

A check of server-side resources used by followthis topic box
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.61 ▼3.05
Dashboard /wp-admin3.31 ▲0.0048.77 ▲1.45
Posts /wp-admin/edit.php3.36 ▲0.0047.18 ▼1.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.63 ▼4.36
Media Library /wp-admin/upload.php3.23 ▲0.0036.21 ▼1.22

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

followthis topic box: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.62 ▼0.751.97 ▼0.3043.17 ▲3.45
Dashboard /wp-admin2,209 ▲185.83 ▲0.95109.48 ▲8.1641.82 ▲1.78
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0138.81 ▼1.7634.29 ▼0.57
Add New Post /wp-admin/post-new.php1,514 ▼2023.51 ▲0.36661.81 ▲20.7056.47 ▲4.49
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.0798.96 ▼3.2941.89 ▲1.24

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/followthis-topic-box/wpdk.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Section' not found in wp-content/plugins/followthis-topic-box/ft_settings.php:95
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/followthis-topic-box/ft.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/followthis-topic-box/ft.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/followthis-topic-box/ft.php on line 3

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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
The official readme.txt might help

followthis-topic-box/followthis.php 85% from 13 tests

"followthis topic box" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("followthis-topic-box.php" instead of "followthis.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin832 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP7159237527
PO File485207233
JavaScript2141654
CSS14018

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.40
▷ Minimum class complexity2.00
▷ Maximum class complexity25.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods33
▷ Static methods1236.36%
▷ Public methods3296.97%
▷ Protected methods00.00%
▷ Private methods13.03%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/ft_logo_72x72.png3.74KB1.30KB▼ 65.37%
img/ft_logo_16x16.png0.95KB0.27KB▼ 71.49%