83% follow-tags

Code Review | Follow Tags & Categories

WordPress plugin Follow Tags & Categories scored 83% from 53 tests.

About plugin

  • Plugin page: follow-tags
  • Plugin version: 1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.7.2
  • WordPress version: 5.8.1
  • First release: May 8, 2020
  • Latest release: Jul 5, 2021
  • Number of updates: 8
  • Update frequency: every 52.9 days
  • Top authors: ikamal (100%)

Code review

53 tests

User reviews

2 reviews

Install metrics

10+ active / 328 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼262.57ms] Passed 4 tests

This is a short check of server-side resources used by Follow Tags & Categories
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.99 ▲0.2734.89 ▲14.76
Dashboard /wp-admin3.27 ▲0.2150.98 ▲1.53
Posts /wp-admin/edit.php3.32 ▲0.2145.97 ▲0.74
Add New Post /wp-admin/post-new.php5.57 ▲0.1495.84 ▼1,045.51
Media Library /wp-admin/upload.php3.15 ▲0.1430.51 ▼7.05

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Follow Tags & Categories
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲18216.67 ▲1.1310.30 ▲1.8947.37 ▼2.57
Dashboard /wp-admin2,934 ▲815.90 ▲0.08139.49 ▲4.78103.98 ▲4.77
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0165.04 ▼2.8090.36 ▲0.29
Add New Post /wp-admin/post-new.php1,651 ▼016.90 ▼0.50350.27 ▼12.99105.95 ▼2.26
Media Library /wp-admin/upload.php1,772 ▼05.03 ▲0.01156.32 ▲9.18107.83 ▼2.40

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 2 options in the database
    • widget_nfc_widget
    • widget_nfc_tag_widget

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

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/follow-tags/includes/Admin/NFC_Widget.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/follow-tags/includes/Admin/NFC_Tag_Widget.php:4

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)
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Search Follow Tags & Categories Then click Install), #2 (Set a Widget from Appearance->Widget), #3 (Final output)
The official readme.txt is a good inspiration

follow-tags/follow-tags-categories.php 85% from 13 tests

"Follow Tags & Categories" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("follow-tags.php" instead of "follow-tags-categories.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin782 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PO File1141449

PHP code Passed 2 tests

An short overview of 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.40
Average class complexity16.83
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods48.51%
▷ Public methods4697.87%
▷ Protected methods00.00%
▷ Private methods12.13%
▷ Named functions266.67%
▷ Anonymous functions133.33%
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 1 test

Image compression 0% from 1 test

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.73MB with 0.57MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png149.77KB33.47KB▼ 77.65%
screenshot-1.png162.04KB30.90KB▼ 80.93%
screenshot-3.png436.19KB110.93KB▼ 74.57%