84% admin-post-tag-filter

Code Review | Admin post tag filter

WordPress plugin Admin post tag filter scored84%from 54 tests.

About plugin

  • Plugin page: admin-post-tag-fi...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Jun 29, 2016
  • Latest release: Dec 24, 2020
  • Number of updates: 8
  • Update frequency: every 204.9 days
  • Top authors: kiranpatil353 (75%)clarionwpdeveloper (37.5%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /4,837 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼3.50ms] Passed 4 tests

Server-side resources used by Admin post tag filter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.85 ▼0.72
Dashboard /wp-admin3.31 ▼0.0459.16 ▼11.69
Posts /wp-admin/edit.php3.36 ▲0.0050.62 ▲2.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.94 ▼2.47
Media Library /wp-admin/upload.php3.23 ▲0.0036.79 ▲0.90

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Admin post tag filter: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▼0.331.92 ▲0.2245.57 ▼3.16
Dashboard /wp-admin2,189 ▲125.55 ▼0.0286.16 ▼17.1236.40 ▼5.28
Posts /wp-admin/edit.php2,109 ▲61.98 ▲0.0034.42 ▼1.3134.11 ▼2.24
Add New Post /wp-admin/post-new.php1,526 ▼323.11 ▲0.27668.06 ▲8.1356.52 ▲4.43
Media Library /wp-admin/upload.php1,400 ▲34.13 ▼0.17110.33 ▲3.4746.96 ▲3.00

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-post-tag-filter/index.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: filter, edit, admin, management, tags...

admin-post-tag-filter/index.php 92% from 13 tests

The entry point to "Admin post tag filter" version 2.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("admin-post-tag-filter.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16928

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin