79% search-placeholder-avada

Code Review | Search Placeholder Avada

WordPress plugin Search Placeholder Avada scored79%from 54 tests.

About plugin

  • Plugin page: search-placeholde...
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.2.18+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 16, 2020
  • Latest release: Dec 18, 2022
  • Number of updates: 19
  • Update frequency: every 51.4 days
  • Top authors: mlchaves (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,275 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.88ms] Passed 4 tests

A check of server-side resources used by Search Placeholder Avada
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.75 ▲3.47
Dashboard /wp-admin3.37 ▲0.0246.77 ▼13.45
Posts /wp-admin/edit.php3.48 ▲0.1245.74 ▼3.24
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.36 ▼16.38
Media Library /wp-admin/upload.php3.29 ▲0.0634.48 ▲1.56
Search Placeholder Avada /wp-admin/options-general.php?page=search-placeholder-avada3.2630.08

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Search Placeholder Avada
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.24 ▼1.321.72 ▼0.0143.06 ▼8.05
Dashboard /wp-admin2,217 ▲265.86 ▲1.0399.18 ▼4.2938.67 ▼3.12
Posts /wp-admin/edit.php2,097 ▲52.00 ▼0.0234.07 ▼9.4033.85 ▼0.77
Add New Post /wp-admin/post-new.php1,521 ▼1222.87 ▼0.13648.58 ▼6.6752.93 ▼11.21
Media Library /wp-admin/upload.php1,396 ▲84.22 ▼0.0095.73 ▼13.7942.57 ▼3.66
Search Placeholder Avada /wp-admin/options-general.php?page=search-placeholder-avada7932.0525.5728.31

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/search-placeholder-avada/public/partials/search-placeholder-avada-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/search-placeholder-avada/admin/partials/search-placeholder-avada-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: avada, header, javascript, search, themefusion...

search-placeholder-avada/search-placeholder-avada.php Passed 13 tests

The entry point to "Search Placeholder Avada" version 2.0.0 is a PHP file that has certain tags in its header comment area
66 characters long description:
Allows you to customise the search box placeholder text for Avada.

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
Good job! No executable or dangerous file extensions detected253 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12134526236
JavaScript222810
CSS2287

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity1.86
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin