89% media-search-plus

Code Review | Media Search Plus

WordPress plugin Media Search Plus scored 89% from 54 tests.

About plugin

  • Plugin page: media-search-plus
  • Plugin version: 0.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2022
  • Latest release: Nov 17, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: philrykoff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 288 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.03ms] Passed 4 tests

Analyzing server-side resources used by Media Search Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.17 ▼0.56
Dashboard /wp-admin3.35 ▲0.0448.82 ▼0.26
Posts /wp-admin/edit.php3.40 ▲0.0446.00 ▲0.33
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.67 ▼11.63
Media Library /wp-admin/upload.php3.27 ▲0.0435.09 ▲2.56

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Media Search Plus
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.16 ▼1.421.76 ▼0.0243.51 ▲3.82
Dashboard /wp-admin2,206 ▲215.91 ▲1.03111.53 ▲4.8044.95 ▲3.56
Posts /wp-admin/edit.php2,089 ▲212.03 ▼0.0233.56 ▼3.7835.68 ▲2.27
Add New Post /wp-admin/post-new.php1,533 ▲1323.09 ▼0.01625.78 ▼88.4054.56 ▼6.98
Media Library /wp-admin/upload.php1,385 ▼04.21 ▼0.19102.94 ▼9.1543.18 ▼2.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Demo search on the Media Library screen.), #2 (Demo search on the Insert Media - Media Library screen.)
The official readme.txt might help

media-search-plus/media-search-plus.php 92% from 13 tests

"Media Search Plus" version 0.8.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Everything looks great! No dangerous files found in this plugin136 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP253100136

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods228.57%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin