Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method GNA_SearchShortcode::activate_handler() should not be called statically
Server metrics [RAM: ▲0.02MB] [CPU: ▼135.36ms] Passed 4 tests
An overview of server-side resources used by GNA Search Shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 32.71 ▲10.64 |
Dashboard /wp-admin | 3.08 ▲0.03 | 43.92 ▲2.61 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 43.96 ▲0.58 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 90.12 ▼547.41 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 34.48 ▲2.78 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for GNA Search Shortcode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲109 | 15.93 ▲0.28 | 9.59 ▼1.32 | 43.73 ▼2.99 |
Dashboard /wp-admin | 2,973 ▲42 | 5.90 ▼0.22 | 137.68 ▼2.84 | 107.90 ▼3.31 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.72 ▼0.12 | 61.85 ▼7.66 | 95.24 ▲5.69 |
Add New Post /wp-admin/post-new.php | 1,672 ▲57 | 19.20 ▼2.67 | 379.04 ▲100.95 | 105.96 ▲5.46 |
Media Library /wp-admin/upload.php | 1,751 ▼56 | 5.02 ▼0.02 | 142.26 ▼15.53 | 125.21 ▲13.43 |
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
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method GNA_SearchShortcode::deactivate_handler() should not be called statically
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/gna-search-shortcode/gna-search-shortcode-core.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
gna-search-shortcode/gna-search-shortcode.php Passed 13 tests
The entry point to "GNA Search Shortcode" version 0.9.5 is a PHP file that has certain tags in its header comment area
54 characters long description:
[searchform] shortcode for any pages, posts or widgets
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin113 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 11 | 109 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin