89% post-state-tags

Code Review | Post State Tags

WordPress plugin Post State Tags scored 89% from 54 tests.

About plugin

  • Plugin page: post-state-tags
  • Plugin version: 2.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.4
  • WordPress version: 5.8.1
  • First release: May 19, 2015
  • Latest release: Sep 29, 2021
  • Number of updates: 85
  • Update frequency: every 27.4 days
  • Top authors: brandbrilliance (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active / 14,994 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼144.75ms] Passed 4 tests

Analyzing server-side resources used by Post State Tags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0123.88 ▼1.46
Dashboard /wp-admin3.24 ▲0.1837.90 ▼4.05
Posts /wp-admin/edit.php3.30 ▲0.1938.38 ▲4.65
Add New Post /wp-admin/post-new.php5.52 ▲0.0871.25 ▼576.12
Media Library /wp-admin/upload.php3.10 ▲0.1025.64 ▲2.65
Post State Tags /wp-admin/options-general.php?page=options-post-state-tags3.1127.03

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
bb-pst-version
bb-pst-custom
bb-pst-advanced
bb-pst-default
bb-pst-installed
bb-pst-special

Browser metrics Passed 4 tests

An overview of browser requirements for Post State Tags
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,914 ▲31317.64 ▲1.536.02 ▼2.4173.30 ▼2.88
Dashboard /wp-admin3,152 ▲2568.29 ▲2.12138.44 ▲9.90167.16 ▼4.06
Posts /wp-admin/edit.php3,000 ▲2635.23 ▲1.9981.72 ▲18.64141.56 ▲0.72
Add New Post /wp-admin/post-new.php3,826 ▼9218.65 ▼0.17406.44 ▼42.06163.66 ▼1.61
Media Library /wp-admin/upload.php1,782 ▲275.69 ▲0.19121.69 ▼21.24226.82 ▲40.25
Post State Tags /wp-admin/options-general.php?page=options-post-state-tags3,7645.55157.50137.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • bb-pst-advanced
    • bb-pst-version
    • bb-pst-default
    • bb-pst-special
    • bb-pst-custom
    • bb-pst-installed

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #4, #5 in post-state-tags/assets to your readme.txt
  • Plugin Name: You should set the name of your plugin on the first line ( === post-state-tags === )
The official readme.txt might help

post-state-tags/post-state-tags.php 92% from 13 tests

This is the main PHP file of "Post State Tags" version 2.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,489 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP33914161,102
JavaScript2204316
CSS313371

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity57.00
▷ Minimum class complexity15.00
▷ Maximum class complexity85.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods68
▷ Static methods45.88%
▷ Public methods6088.24%
▷ Protected methods00.00%
▷ Private methods811.76%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin