84% fewer-tags

Code Review | Fewer tags

WordPress plugin Fewer tags scored84%from 54 tests.

About plugin

  • Plugin page: fewer-tags
  • Plugin version: 1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.3
  • WordPress version: 6.3.1
  • First release: Nov 28, 2023
  • Latest release: Nov 28, 2023
  • Number of updates: 38
  • Update frequency: N/A
  • Top authors: joostdevalk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /35 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.44ms] Passed 4 tests

This is a short check of server-side resources used by Fewer tags
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.29 ▲1.41
Dashboard /wp-admin3.35 ▲0.0449.53 ▼3.34
Posts /wp-admin/edit.php3.40 ▲0.0450.04 ▼3.79
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.59 ▼0.03
Media Library /wp-admin/upload.php3.27 ▲0.0438.07 ▲3.88

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fewer tags
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.72 ▲0.012.03 ▲0.2543.59 ▼0.43
Dashboard /wp-admin2,198 ▲175.61 ▼0.0994.19 ▼19.7440.38 ▼3.30
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0238.83 ▼2.7336.84 ▼0.93
Add New Post /wp-admin/post-new.php1,526 ▼023.58 ▲0.21609.00 ▼13.3658.52 ▼4.80
Media Library /wp-admin/upload.php1,400 ▼34.23 ▲0.0696.15 ▼5.4942.91 ▼0.76

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fewer-tags/fewer-tags-playground.php:23

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (The Fewer tags settings on the Settings → Reading screen.) image required
You can take inspiration from this readme.txt

fewer-tags/fewer-tags.php 92% from 13 tests

The main PHP file in "Fewer tags" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 196 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected259 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP247154209
JSON20050

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity15.00
▷ Minimum class complexity8.00
▷ Maximum class complexity22.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods1885.71%
▷ Protected methods00.00%
▷ Private methods314.29%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
No PNG images were found in this plugin