94% any-word-search

Code Review | Any Word Search

WordPress plugin Any Word Search scored 94% from 54 tests.

About plugin

  • Plugin page: any-word-search
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 5.8.1
  • First release: Apr 1, 2013
  • Latest release: Apr 2, 2013
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: felthy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,109 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.14MB] [CPU: ▼153.48ms] Passed 4 tests

Analyzing server-side resources used by Any Word Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.56 ▼0.2818.52 ▼18.49
Dashboard /wp-admin2.98 ▼0.0840.72 ▼7.42
Posts /wp-admin/edit.php2.92 ▼0.1932.15 ▼13.95
Add New Post /wp-admin/post-new.php5.42 ▼0.0196.86 ▼574.04
Media Library /wp-admin/upload.php3.01 ▲0.0035.04 ▲1.34

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Any Word Search
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10715.80 ▲0.358.42 ▲0.6648.88 ▼6.38
Dashboard /wp-admin2,970 ▲396.12 ▲0.15142.05 ▼26.14111.24 ▲1.41
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.1381.18 ▲8.3196.98 ▲6.51
Add New Post /wp-admin/post-new.php1,615 ▼2,10921.31 ▲6.07279.13 ▼242.73112.21 ▼12.76
Media Library /wp-admin/upload.php1,807 ▼05.02 ▲0.01149.59 ▼17.48132.15 ▲3.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/any-word-search/any-word-search.php:50

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 96% from 29 tests

readme.txt Passed 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
4 plugin tags: search, word, operator, or

any-word-search/any-word-search.php 92% from 13 tests

"Any Word Search" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 254 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected24 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown16016
PHP17358

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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

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