Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲0.13ms] Passed 4 tests
Server-side resources used by Posts Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 40.57 ▲2.46 |
Dashboard /wp-admin | 3.41 ▲0.11 | 45.32 ▼1.46 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 49.26 ▼1.99 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 100.79 ▲15.45 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.83 ▲1.51 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Posts Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲114 | 13.74 ▼0.90 | 8.23 ▲6.58 | 44.81 ▲4.99 |
Dashboard /wp-admin | 2,198 ▲31 | 5.59 ▼0.05 | 88.18 ▼5.06 | 42.98 ▲5.48 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.04 | 40.12 ▲5.46 | 36.98 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.00 ▲0.16 | 590.02 ▼90.26 | 53.85 ▼25.16 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▼0.00 | 92.56 ▼16.53 | 39.46 ▼7.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
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 issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
posts-search/posts-search.php Passed 13 tests
The main PHP file in "Posts Search" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Search posts by taxonomy terms and post type with Ajax.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,211 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 94 | 82 | 646 |
CSS | 3 | 14 | 14 | 300 |
JavaScript | 2 | 29 | 65 | 152 |
PO File | 1 | 17 | 21 | 59 |
Markdown | 1 | 23 | 0 | 42 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 12.38 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 5.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 11 | 57.89% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected