84% posts-filter-by-title

Code Review | Posts Filter by Title

WordPress plugin Posts Filter by Title scored84%from 54 tests.

About plugin

  • Plugin page: posts-filter-by-t...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5
  • WordPress version: 6.3.1
  • First release: Jan 5, 2013
  • Latest release: Jan 5, 2013
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: subharanjan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,407 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Posts Filter by Title
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.48 ▲3.56
Dashboard /wp-admin3.33 ▼0.0246.64 ▼10.97
Posts /wp-admin/edit.php3.38 ▲0.0248.54 ▲0.07
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.23 ▼8.26
Media Library /wp-admin/upload.php3.25 ▲0.0137.65 ▼1.53

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Posts Filter by Title
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.001.69 ▲0.1244.96 ▲3.48
Dashboard /wp-admin2,195 ▲185.62 ▲0.0394.57 ▲9.5941.42 ▼2.67
Posts /wp-admin/edit.php2,114 ▲141.98 ▲0.0140.13 ▲2.2637.29 ▼1.30
Add New Post /wp-admin/post-new.php1,526 ▼223.09 ▲0.02677.11 ▼19.8758.51 ▲3.74
Media Library /wp-admin/upload.php1,391 ▼94.29 ▲0.2096.02 ▼13.5144.43 ▼3.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
  • 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/posts-filter-by-title/posts-filter-by-title.php:30

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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 require attention:
  • Screenshots: Please add an image for screenshot #1 (Post titles dropdown box)
The official readme.txt is a good inspiration

posts-filter-by-title/posts-filter-by-title.php 92% from 13 tests

Analyzing the main PHP file in "Posts Filter by Title" version 0.1
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 328 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin72 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1143972

PHP code Passed 2 tests

An short overview of 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.50
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png54.78KB26.14KB▼ 52.28%