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
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.74ms] Passed 4 tests
A check of server-side resources used by Open Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 42.23 ▼0.13 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.14 ▼3.72 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 53.95 ▼0.16 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.14 ▼13.67 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 35.66 ▼1.40 |
Server storage [IO: ▲6.86MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Open Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲29 | 14.24 ▲0.00 | 1.77 ▲0.17 | 43.88 ▲1.84 |
Dashboard /wp-admin | 2,186 ▲9 | 5.59 ▲0.02 | 101.62 ▲3.29 | 40.46 ▼4.74 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.02 | 34.87 ▼4.23 | 32.16 ▼6.16 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.22 ▲0.28 | 682.83 ▲36.25 | 58.10 ▲0.93 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.12 ▼0.22 | 107.21 ▼1.35 | 46.39 ▲2.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/open-search-document/templates/open-search-document.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function OpenSearchDocument\\add_action() in wp-content/plugins/open-search-document/open-search-document.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Firefox OpenSearch plugins), #2 (Safari Quick Website Search), #3 (Chrome Tab to Search)
open-search-document/open-search-document.php Passed 13 tests
The main PHP file in "Open Search" ver. 4.0.0 adds more information about the plugin and also serves as the entry point for this plugin
45 characters long description:
Create an Open Search Document for your blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected200 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 45 | 136 | 200 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 14 | 100.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 6.84MB with 5.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 2,568.45KB | 654.55KB | ▼ 74.52% |
screenshot-2.png | 2,447.63KB | 625.36KB | ▼ 74.45% |
screenshot-1.png | 1,990.86KB | 558.96KB | ▼ 71.92% |