83% wpfilesearch

Code Review | Wordpress File Search

WordPress plugin Wordpress File Search scored83%from 54 tests.

About plugin

  • Plugin page: wpfilesearch
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.5
  • WordPress version: 6.3.1
  • First release: Dec 14, 2015
  • Latest release: Apr 14, 2016
  • Number of updates: 15
  • Update frequency: every 8.1 days
  • Top authors: markcoker (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,388 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼12.26ms] Passed 4 tests

A check of server-side resources used by Wordpress File Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.13 ▼4.07
Dashboard /wp-admin3.31 ▼0.0349.86 ▼12.72
Posts /wp-admin/edit.php3.36 ▲0.0147.91 ▼4.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.74 ▼27.99
Media Library /wp-admin/upload.php3.23 ▲0.0132.74 ▼1.13

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Wordpress File Search: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.25 ▼1.311.74 ▲0.0745.70 ▲3.48
Dashboard /wp-admin2,221 ▲304.94 ▼0.9296.82 ▼8.0462.27 ▲19.12
Posts /wp-admin/edit.php2,104 ▲151.98 ▼0.0737.22 ▲0.4834.71 ▼2.01
Add New Post /wp-admin/post-new.php1,527 ▲823.26 ▲0.11731.30 ▲87.4752.64 ▼12.08
Media Library /wp-admin/upload.php1,403 ▲124.19 ▲0.0698.02 ▼8.2870.40 ▲27.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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 fix the following items
  • 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/wpfilesearch/wpFileSearch.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

wpfilesearch/wpFileSearch.php 77% from 13 tests

The primary PHP file in "Wordpress File Search" version 1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpfilesearch.php" instead of "wpFileSearch.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

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
No dangerous file extensions were detected250 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP11411134
JavaScript17075
HTML10021
CSS10010
SVG20010

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions12
▷ Named functions12100.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
8 PNG files occupy 0.32MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png119.26KB60.89KB▼ 48.94%
assets/icon-256x256.png26.52KB30.63KB0.00%
assets/icon-grey-16x16.png0.28KB0.50KB0.00%
assets/screenshot-1.png48.30KB26.30KB▼ 45.56%
assets/screenshot-3.png59.63KB35.82KB▼ 39.93%