84% wp-date-search

Code Review | WP Date Search

WordPress plugin WP Date Search scored84%from 54 tests.

About plugin

  • Plugin page: wp-date-search
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Feb 4, 2017
  • Latest release: Feb 4, 2017
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: pianopj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /649 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by WP Date Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.51 ▲0.43
Dashboard /wp-admin3.32 ▲0.0248.10 ▼7.70
Posts /wp-admin/edit.php3.37 ▲0.0151.15 ▲2.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.28 ▼17.95
Media Library /wp-admin/upload.php3.24 ▲0.0139.05 ▲1.53

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Date Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.082.62 ▲0.9247.22 ▲6.28
Dashboard /wp-admin2,189 ▲125.61 ▼0.0694.29 ▲0.3940.11 ▼3.96
Posts /wp-admin/edit.php2,100 ▼31.98 ▲0.0236.87 ▼2.8033.25 ▼2.24
Add New Post /wp-admin/post-new.php1,528 ▲223.13 ▼0.07669.86 ▲3.7455.25 ▲2.31
Media Library /wp-admin/upload.php1,400 ▲34.17 ▼0.04111.24 ▲0.0646.10 ▲1.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-date-search/wp-date-search.php:114

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: date search, search

wp-date-search/wp-date-search.php Passed 13 tests

This is the main PHP file of "WP Date Search" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
56 characters long description:
Adds in date searching to the standard WordPress search.

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
No dangerous file extensions were detected74 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1192174

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin