83% wp-spotlight-search

Code Review | Advanced All in One Admin Search by WP Spotlight

WordPress plugin Advanced All in One Admin Search by WP Spotlight scored83%from 54 tests.

About plugin

  • Plugin page: wp-spotlight-search
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.3
  • WordPress version: 6.3.1
  • First release: Sep 25, 2018
  • Latest release: Aug 14, 2023
  • Number of updates: 19
  • Update frequency: every 94.2 days
  • Top authors: rajkuppus (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /4,126 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.75ms] Passed 4 tests

This is a short check of server-side resources used by Advanced All in One Admin Search by WP Spotlight
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.1035.18 ▼8.66
Dashboard /wp-admin3.40 ▲0.1046.15 ▼4.22
Posts /wp-admin/edit.php3.51 ▲0.1551.98 ▲1.92
Add New Post /wp-admin/post-new.php5.99 ▲0.1199.75 ▼6.62
Media Library /wp-admin/upload.php3.32 ▲0.0934.50 ▲0.51

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced All in One Admin Search by WP Spotlight
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲22913.55 ▼0.831.61 ▼0.3728.25 ▼14.43
Dashboard /wp-admin2,339 ▲1485.49 ▼0.41102.91 ▲5.3883.85 ▲41.77
Posts /wp-admin/edit.php2,246 ▲1542.48 ▲0.4641.40 ▲0.6838.60 ▲3.95
Add New Post /wp-admin/post-new.php1,639 ▲9723.45 ▲5.04638.56 ▲27.7038.91 ▼18.68
Media Library /wp-admin/upload.php1,527 ▲1364.65 ▲0.50113.97 ▲16.2881.67 ▲37.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-spotlight-search/admin/view/settings.php:1

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

wp-spotlight-search/init.php 85% from 13 tests

This is the main PHP file of "Advanced All in One Admin Search by WP Spotlight" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 152 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-spotlight-search.php" instead of "init.php")

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 detected758 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP48212486
JavaScript32927201
SVG10143
CSS2131828

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity37.50
▷ Minimum class complexity10.00
▷ Maximum class complexity65.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods33
▷ Static methods1648.48%
▷ Public methods2781.82%
▷ Protected methods00.00%
▷ Private methods618.18%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/rating.png36.40KB12.84KB▼ 64.73%