90% wp-pretty-filters

Code Review | WP Pretty Filters

WordPress plugin WP Pretty Filters scored90%from 54 tests.

About plugin

  • Plugin page: wp-pretty-filters
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.8
  • WordPress version: 6.3.1
  • First release: Nov 5, 2015
  • Latest release: May 9, 2017
  • Number of updates: 6
  • Update frequency: every 91.7 days
  • Top authors: johnjamesjacoby (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,482 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by WP Pretty Filters
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.48 ▼1.28
Dashboard /wp-admin3.31 ▼0.0346.12 ▼16.17
Posts /wp-admin/edit.php3.36 ▲0.0149.73 ▼0.00
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.01 ▼4.67
Media Library /wp-admin/upload.php3.23 ▲0.0135.92 ▲5.00

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Pretty Filters
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.38 ▲0.031.60 ▼0.2341.91 ▼4.16
Dashboard /wp-admin2,202 ▲225.65 ▲0.0192.55 ▲1.4841.99 ▼4.44
Posts /wp-admin/edit.php2,111 ▲112.00 ▼0.1041.65 ▼6.0836.21 ▼4.65
Add New Post /wp-admin/post-new.php1,530 ▲223.33 ▲0.09628.41 ▼42.8552.95 ▲1.12
Media Library /wp-admin/upload.php1,401 ▲74.17 ▼0.0399.81 ▼3.2647.60 ▲1.71

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: select, filters, jquery, filter

wp-pretty-filters/wp-pretty-filters.php Passed 13 tests

Analyzing the main PHP file in "WP Pretty Filters" version 1.1.0
44 characters long description:
Makes post filters match Media & Attachments

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin58 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS12024
JavaScript18819
PHP173315

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions3
▷ Named functions3100.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
There were not PNG files found in your plugin