Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼0.56ms] Passed 4 tests
An overview of server-side resources used by Curated Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.65 ▲0.44 |
Dashboard /wp-admin | 3.38 ▲0.08 | 57.75 ▲4.44 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 52.67 ▲3.28 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 89.99 ▼10.39 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.13 ▲4.99 |
Special Searches /wp-admin/edit.php?post_type=special-search | 3.35 | 37.67 |
Settings /wp-admin/edit.php?post_type=special-search&page=curated-search | 3.27 | 36.71 |
Add New /wp-admin/post-new.php?post_type=special-search | 3.43 | 50.59 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_cs_excluded_list |
New WordPress options |
---|
widget_recent-posts |
cs_search_pagination |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
cs_one_result_redirect |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Curated Search
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲47 | 14.38 ▲0.03 | 1.72 ▼0.54 | 43.41 ▲0.27 |
Dashboard /wp-admin | 2,242 ▲62 | 5.64 ▼0.01 | 87.63 ▼2.33 | 39.26 ▼2.99 |
Posts /wp-admin/edit.php | 2,148 ▲45 | 2.24 ▲0.24 | 35.39 ▼1.96 | 33.37 ▼7.25 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 19.56 ▼3.64 | 651.86 ▼2.79 | 53.87 ▲1.13 |
Media Library /wp-admin/upload.php | 1,444 ▲47 | 4.27 ▲0.07 | 95.66 ▼12.24 | 43.38 ▼4.27 |
Special Searches /wp-admin/edit.php?post_type=special-search | 1,144 | 2.17 | 34.81 | 31.96 |
Settings /wp-admin/edit.php?post_type=special-search&page=curated-search | 1,051 | 1.92 | 34.30 | 28.73 |
Add New /wp-admin/post-new.php?post_type=special-search | 2,433 | 7.99 | 174.03 | 71.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_cs_excluded_list
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- cs_one_result_redirect
- db_upgraded
- cs_search_pagination
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=special-search&page=curated-search
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/curated-search/includes/class-cs-ajax.php+75
Trying to get property 'taxonomy' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=special-search&page=curated-search
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/curated-search/includes/class-cs-ajax.php+75
Trying to get property 'term_id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=special-search&page=curated-search
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/curated-search/includes/class-cs-ajax.php+75
Undefined offset: 1
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=special-search&page=curated-search
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/curated-search/includes/class-cs-ajax.php+75
Trying to get property 'name' of non-object
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 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== curated-search ===
) - Tags: There are too many tags (11 tag instead of maximum 10)
curated-search/curated-search.php Passed 13 tests
The principal PHP file in "Curated Search" v. 1.2 is loaded by WordPress automatically on each request
89 characters long description:
Quickly and easily specify the content you want users to see for specific search queries.
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
Success! There were no dangerous files found in this plugin1,205 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 173 | 282 | 1,017 |
JavaScript | 1 | 21 | 1 | 172 |
CSS | 1 | 19 | 3 | 16 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 36 | |
▷ Static methods | 1 | 2.78% |
▷ Public methods | 34 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.56% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.51MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 80.34KB | 22.63KB | ▼ 71.83% |
assets/screenshot-1.png | 125.14KB | 35.02KB | ▼ 72.01% |
assets/screenshot-2.png | 135.11KB | 40.53KB | ▼ 70.00% |
assets/screenshot-4.png | 81.03KB | 22.62KB | ▼ 72.08% |
assets/screenshot-3.png | 104.05KB | 27.80KB | ▼ 73.28% |