90% filter-admin-published-default

Code Review | Filter Admin Published Default

WordPress plugin Filter Admin Published Default scored90%from 54 tests.

About plugin

  • Plugin page: filter-admin-publ...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Jul 29, 2014
  • Latest release: Nov 14, 2017
  • Number of updates: 6
  • Update frequency: every 200.5 days
  • Top authors: ryno267 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /4,636 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.70ms] Passed 4 tests

A check of server-side resources used by Filter Admin Published Default
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.50 ▼9.46
Dashboard /wp-admin3.31 ▲0.0046.98 ▼0.61
Posts /wp-admin/edit.php3.36 ▲0.0052.00 ▼0.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.99 ▲5.59
Media Library /wp-admin/upload.php3.23 ▲0.0036.48 ▼0.12
All Posts /wp-admin/edit.php?post_status=publish3.3649.53
All Pages /wp-admin/edit.php?post_type=page&post_status=publish3.3343.32

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Filter Admin Published Default
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.26 ▼1.111.71 ▼0.5141.72 ▼0.02
Dashboard /wp-admin2,209 ▲244.84 ▼1.02109.12 ▲3.4441.92 ▲0.85
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0140.48 ▲1.6235.00 ▼0.50
Add New Post /wp-admin/post-new.php1,534 ▼823.42 ▲5.22626.87 ▲16.8157.52 ▲1.56
Media Library /wp-admin/upload.php1,391 ▲64.25 ▲0.10101.60 ▼5.2245.30 ▼2.61
All Posts /wp-admin/edit.php?post_status=publish2,0891.9934.9434.33
All Pages /wp-admin/edit.php?post_type=page&post_status=publish1,8521.9936.7332.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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 Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

filter-admin-published-default/filter-admin-published-default.php Passed 13 tests

The main file in "Filter Admin Published Default" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
102 characters long description:
Enables all public post types (posts, pages, etc) in wp-admin to show the Published filter by default.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin32 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2143932

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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

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