78% wp-meta-search

Code Review | WP Meta Search

WordPress plugin WP Meta Search scored78%from 54 tests.

About plugin

  • Plugin page: wp-meta-search
  • Plugin version: 1.1b...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7
  • WordPress version: 6.3.1
  • First release: Jul 4, 2017
  • Latest release: Feb 2, 2018
  • Number of updates: 16
  • Update frequency: every 13.4 days
  • Top authors: solasola (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,407 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.17MB] [CPU: ▼2.16ms] Passed 4 tests

This is a short check of server-side resources used by WP Meta Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1740.86 ▲0.30
Dashboard /wp-admin3.47 ▲0.1751.94 ▼5.61
Posts /wp-admin/edit.php3.59 ▲0.2352.59 ▲3.16
Add New Post /wp-admin/post-new.php6.06 ▲0.1788.05 ▼6.47
Media Library /wp-admin/upload.php3.40 ▲0.1742.73 ▲6.04
WP Meta Search /wp-admin/tools.php?page=yks_settings3.3432.68

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Meta Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲11513.40 ▼0.959.16 ▲7.3948.53 ▲2.44
Dashboard /wp-admin2,199 ▲225.62 ▲0.0194.58 ▲4.4041.03 ▼0.16
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0635.14 ▼5.3833.84 ▼4.60
Add New Post /wp-admin/post-new.php1,530 ▲223.16 ▲0.16650.68 ▼44.6354.52 ▲3.78
Media Library /wp-admin/upload.php1,401 ▲14.16 ▲0.04109.91 ▲0.1649.44 ▲3.89
WP Meta Search /wp-admin/tools.php?page=yks_settings1,3401.9131.9828.08

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_yks_wpms_form
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=yks_settings
    • > Notice in wp-content/plugins/wp-meta-search/inc/admin.php+417
    Undefined variable: vars
    • > GET request to /wp-admin/tools.php?page=yks_settings
    • > Notice in wp-content/plugins/wp-meta-search/inc/admin.php+417
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/tools.php?page=yks_settings
    • > Warning in wp-content/plugins/wp-meta-search/inc/admin.php+417
    Invalid argument supplied for foreach()

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 take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-meta-search/add/taxonomy.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-meta-search/inc/admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-meta-search/wp-meta-search.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-meta-search/inc/front.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: custom field, postmeta, category, tag, widget...

wp-meta-search/wp-meta-search.php 85% from 13 tests

The entry point to "WP Meta Search" version 1.1b... is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1.1b...")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,057 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP7215118849
PO File24566117
JavaScript215755
CSS210836

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity26.00
▷ Minimum class complexity15.00
▷ Maximum class complexity37.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.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
3 PNG files occupy 0.27MB with 0.20MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png131.17KB34.87KB▼ 73.42%
assets/screenshot-2.png125.73KB36.21KB▼ 71.20%
assets/form.png23.52KB5.66KB▼ 75.93%