Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.34ms] Passed 4 tests
Server-side resources used by Cyba Advanced Search
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.60 ▼1.29 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.70 ▼1.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 41.60 ▼3.71 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.36 ▼10.05 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.60 ▼1.80 |
Cyba Advanced Search /wp-admin/options-general.php?page=cyba-advanced-search | 3.20 | 30.62 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Cyba Advanced Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.30 ▼1.08 | 1.75 ▲0.10 | 43.61 ▲5.04 |
Dashboard /wp-admin | 2,210 ▲19 | 4.86 ▼1.05 | 105.80 ▲5.47 | 41.14 ▲0.57 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.02 | 38.37 ▼2.70 | 33.79 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.58 ▼5.65 | 670.93 ▲44.24 | 59.47 ▲8.68 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▲0.09 | 96.54 ▲0.89 | 42.99 ▲0.29 |
Cyba Advanced Search /wp-admin/options-general.php?page=cyba-advanced-search | 873 | 2.02 | 26.52 | 31.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cyba-advanced-search/includes/cyba-pagination.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyba-advanced-search/includes/admin-menu.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cyba-advanced-search/includes/form.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cyba-advanced-search/includes/form.php:8
- > PHP Notice
Undefined variable: arr_posts in wp-content/plugins/cyba-advanced-search/includes/cyba-pagination.php on line 2
- > PHP Notice
Trying to get property 'max_num_pages' of non-object in wp-content/plugins/cyba-advanced-search/includes/cyba-pagination.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyba-advanced-search/includes/admin-menu.php:5
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: devgirl, directory, category, posts, search
cyba-advanced-search/cyba-advanced-search.php Passed 13 tests
The main file in "Cyba Advanced Search" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
Display content using this shortcode [cyba-advanced-search] to insert in a page or post
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected487 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 231 | 51 | 399 |
CSS | 2 | 51 | 16 | 88 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected