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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼4.38ms] Passed 4 tests
Server-side resources used by Spotlight Search - Search Assistant Plugin for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 44.42 ▲2.45 |
Dashboard /wp-admin | 3.49 ▲0.18 | 49.47 ▼0.70 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 45.76 ▼1.31 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 85.24 ▼17.96 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.41 ▲3.00 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 3.47 | 41.33 |
Spotlight Search /wp-admin/options-general.php?page=spotlight-search | 3.41 | 36.44 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 144 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
spotlight_search_version |
widget_theysaidso_widget |
spotlight_search_opt |
widget_spotlight_search_widget |
spotlight_search_installed |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Spotlight Search - Search Assistant Plugin for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,171 ▲436 | 13.70 ▼0.82 | 7.90 ▲6.21 | 42.84 ▼1.89 |
Dashboard /wp-admin | 2,269 ▲84 | 4.85 ▼0.04 | 112.43 ▲11.61 | 42.44 ▼8.31 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.05 ▼0.13 | 35.16 ▼6.52 | 33.83 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,565 ▲46 | 23.25 ▲0.04 | 652.46 ▲49.66 | 52.09 ▲1.46 |
Media Library /wp-admin/upload.php | 1,448 ▲57 | 4.22 ▼0.02 | 103.70 ▲6.46 | 48.26 ▲3.81 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 1,473 | 3.68 | 55.09 | 63.00 |
Spotlight Search /wp-admin/options-general.php?page=spotlight-search | 1,166 | 3.60 | 51.57 | 34.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 10 options in the database
- widget_spotlight_search_widget
- widget_theysaidso_widget
- spotlight_search_opt
- theysaidso_admin_options
- widget_recent-comments
- spotlight_search_version
- spotlight_search_installed
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'CSF' not found in wp-content/plugins/spotlight-search/classes/admin/settings/options/opt-search.php:2
- > PHP Fatal error
Uncaught Error: Class 'CSF' not found in wp-content/plugins/spotlight-search/classes/admin/settings/options/opt-contact.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spotlight-search/includes/spotlight_widget.php:4
- > PHP Fatal error
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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: helper, search, ajax, contact, email...
spotlight-search/spotlight-search.php 85% from 13 tests
The main PHP script in "Spotlight Search - Search Assistant Plugin for WordPress" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.2")
- Description: Keep the plugin description shorter than 140 characters (currently 218 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected17,831 lines of code in 119 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 81 | 2,272 | 1,091 | 10,087 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
CSS | 4 | 86 | 13 | 565 |
Markdown | 2 | 85 | 0 | 379 |
JavaScript | 7 | 38 | 8 | 281 |
SVG | 5 | 0 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 18.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 6.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 63 | |
▷ Abstract classes | 2 | 3.17% |
▷ Concrete classes | 61 | 96.83% |
▷ Final classes | 1 | 1.64% |
Methods | 211 | |
▷ Static methods | 33 | 15.64% |
▷ Public methods | 210 | 99.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.47% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
assets/img/search.png | 1.02KB | 0.54KB | ▼ 46.85% |