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
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.20ms] Passed 4 tests
Analyzing server-side resources used by Search Console
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.99 ▲1.34 |
Dashboard /wp-admin | 3.36 ▲0.05 | 46.12 ▼1.26 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 47.97 ▼2.42 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 94.09 ▲3.16 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.05 ▲4.21 |
Dashboard /wp-admin/admin.php?page=search-console | 3.25 | 32.84 |
Settings /wp-admin/admin.php?page=search-console-settings | 3.25 | 33.34 |
Server storage [IO: ▲0.41MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
search_console_version |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Search Console
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲145 | 17.09 ▲2.38 | 1.87 ▼0.03 | 36.72 ▼7.69 |
Dashboard /wp-admin | 2,313 ▲136 | 7.44 ▲1.77 | 241.55 ▲150.01 | 45.36 ▼0.16 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.00 ▲0.02 | 40.53 ▲1.74 | 37.61 ▲4.71 |
Add New Post /wp-admin/post-new.php | 1,548 ▼10 | 22.85 ▼2.89 | 549.95 ▼125.70 | 39.78 ▼39.33 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.28 ▲0.01 | 94.67 ▼1.82 | 44.31 ▲1.66 |
Dashboard /wp-admin/admin.php?page=search-console | 1,011 | 12.75 | 205.15 | 39.78 |
Settings /wp-admin/admin.php?page=search-console-settings | 1,129 | 13.74 | 192.24 | 41.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- search_console_version
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/search-console/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/search-console/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Warning
require_once(wp-content/plugins/search-console/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/search-console/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/search-console/search-console.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function Search_Console\\Rest\\add_action() in wp-content/plugins/search-console/includes/Rest/Token.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function Search_Console\\Rest\\add_action() in wp-content/plugins/search-console/includes/Rest/Settings.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: google search console, search console, search console metatag, search console widget
search-console/search-console.php Passed 13 tests
The principal PHP file in "Search Console" v. 2.8.2 is loaded by WordPress automatically on each request
85 characters long description:
This plugin displays your Google Search Console Analytics data inside your WordPress.
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
Everything looks great! No dangerous files found in this plugin3,316 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 701 | 1,395 | 2,829 |
Markdown | 1 | 82 | 0 | 255 |
PO File | 1 | 54 | 120 | 114 |
JSON | 14 | 0 | 0 | 77 |
YAML | 1 | 6 | 0 | 32 |
JavaScript | 3 | 0 | 0 | 8 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 26.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 160 | |
▷ Static methods | 21 | 13.12% |
▷ Public methods | 121 | 75.62% |
▷ Protected methods | 6 | 3.75% |
▷ Private methods | 33 | 20.62% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected