89% wp-backend-file-search-editor-tweaks

Code Review | WP Backend File Search & Editor Tweaks Lite

WordPress plugin WP Backend File Search & Editor Tweaks Lite scored89%from 54 tests.

About plugin

  • Plugin page: wp-backend-file-s...
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Aug 3, 2016
  • Latest release: Jun 27, 2020
  • Number of updates: 78
  • Update frequency: every 18.3 days
  • Top authors: laymanlab (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active /10,805 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼6.28ms] Passed 4 tests

Server-side resources used by WP Backend File Search & Editor Tweaks Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.92 ▲1.92
Dashboard /wp-admin3.45 ▲0.1449.71 ▼1.42
Posts /wp-admin/edit.php3.55 ▲0.1845.80 ▼3.43
Add New Post /wp-admin/post-new.php6.16 ▲0.2777.06 ▼22.18
Media Library /wp-admin/upload.php3.39 ▲0.1537.60 ▲2.88

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 361 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
WP_BACKEND_SEARCH_VERSION
wp_backend_search_lite_show_activation_tip
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

WP Backend File Search & Editor Tweaks Lite: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.73 ▲0.031.74 ▲0.0344.33 ▲1.21
Dashboard /wp-admin2,239 ▲595.64 ▲0.0592.51 ▲3.5948.06 ▲4.89
Posts /wp-admin/edit.php2,145 ▲422.16 ▲0.1640.15 ▼5.1938.30 ▼2.23
Add New Post /wp-admin/post-new.php1,567 ▲3923.02 ▼0.21674.33 ▲9.0651.85 ▼7.82
Media Library /wp-admin/upload.php1,441 ▲414.29 ▲0.1299.08 ▲0.7645.89 ▲2.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • wp_backend_search_lite_show_activation_tip
    • can_compress_scripts
    • WP_BACKEND_SEARCH_VERSION
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: There are too many tags (37 tag instead of maximum 10)
The official readme.txt is a good inspiration

wp-backend-file-search-editor-tweaks/plugin.php 77% from 13 tests

"WP Backend File Search & Editor Tweaks Lite" version 3.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 278 characters long)
  • 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
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-backend-file-search-editor-tweaks.php" instead of "plugin.php")

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
There were no executable files found in this plugin1,223 lines of code in 346 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3386922571
PHP611061372
CSS2374280

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity11.33
▷ Minimum class complexity3.00
▷ Maximum class complexity18.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods422.22%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/WP-Backend-File-Search-Plugin.png9.63KB10.10KB0.00%