84% author-filters

Code Review | Author Filters

WordPress plugin Author Filters scored84%from 54 tests.

About plugin

  • Plugin page: author-filters
  • Plugin version: 3.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: May 31, 2016
  • Latest release: Dec 21, 2020
  • Number of updates: 21
  • Update frequency: every 79.3 days
  • Top authors: clarionwpdeveloper (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /12,104 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.00MB] [CPU: ▼8.16ms] Passed 4 tests

Server-side resources used by Author Filters
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.02 ▲0.72
Dashboard /wp-admin3.32 ▲0.0250.73 ▼5.95
Posts /wp-admin/edit.php3.29 ▼0.0643.54 ▼15.58
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.74 ▼11.83
Media Library /wp-admin/upload.php3.25 ▲0.0239.04 ▲2.30

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Author Filters: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.73 ▲0.2538.89 ▼4.33
Dashboard /wp-admin2,198 ▲245.65 ▲0.1392.01 ▼9.0238.17 ▼4.31
Posts /wp-admin/edit.php2,119 ▲191.94 ▼0.0539.67 ▼0.4734.51 ▼3.36
Add New Post /wp-admin/post-new.php1,526 ▼023.35 ▲0.13667.92 ▲16.5765.04 ▲11.86
Media Library /wp-admin/upload.php1,394 ▼94.12 ▼0.0495.83 ▼5.2344.98 ▼1.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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 no errors were found, this is by no means 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/author-filters/author-filters.php

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Screenshot overview to display author filters drop down on post listing page in admin panel.)
You can look at the official readme.txt

author-filters/author-filters.php 92% from 13 tests

Analyzing the main PHP file in "Author Filters" version 3.5.6
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected83 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2517479
HTML1004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png74.44KB29.43KB▼ 60.47%