Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▲2.61ms] Passed 4 tests
Server-side resources used by Keyword Rank Tracker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 44.28 ▲1.28 |
Dashboard /wp-admin | 3.77 ▲0.46 | 56.42 ▲2.46 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 59.09 ▲7.05 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.42 | 95.50 ▲3.96 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 39.60 ▲2.75 |
About /wp-admin/admin.php?page=keyword-rank-tracker_about | 3.62 | 40.15 |
Settings /wp-admin/admin.php?page=keyword-rank-tracker_settings | 3.59 | 40.30 |
Keyword List /wp-admin/admin.php?page=keyword-rank-tracker | 3.65 | 37.54 |
Server storage [IO: ▲2.82MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 424 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Keyword Rank Tracker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲139 | 13.92 ▼0.87 | 7.94 ▲5.93 | 40.64 ▼2.41 |
Dashboard /wp-admin | 2,237 ▲28 | 5.86 ▼0.05 | 99.61 ▲4.00 | 48.35 ▲10.15 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▼0.03 | 37.93 ▲1.53 | 33.97 ▼3.26 |
Add New Post /wp-admin/post-new.php | 1,540 ▲3 | 23.69 ▲0.52 | 677.33 ▲75.77 | 63.42 ▼1.38 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.20 ▼0.05 | 101.69 ▼2.07 | 44.76 ▼0.27 |
About /wp-admin/admin.php?page=keyword-rank-tracker_about | 844 | 2.02 | 24.85 | 28.68 |
Settings /wp-admin/admin.php?page=keyword-rank-tracker_settings | 889 | 2.06 | 24.03 | 33.99 |
Keyword List /wp-admin/admin.php?page=keyword-rank-tracker | 1,054 | 2.20 | 25.63 | 29.70 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=keyword-rank-tracker
- > Notice in wp-content/plugins/serp-rank/includes/class-serp-rank-keywords-list-table.php+94
Undefined index: exact
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/serp-rank/public/partials/serp-rank-public-display.php
- 187× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/serp-rank/includes/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php:19
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/serp-rank/includes/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/serp-rank/includes/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php:37
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/serp-rank/includes/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php:23
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/serp-rank/includes/vendor/phpseclib/phpseclib/phpseclib/Crypt/RC4.php:54
- > PHP Fatal error
Uncaught Exception: This library must be installed via composer or by downloading the full package. See the instructions at https://github.com/google/google-api-php-client#installation. in wp-content/plugins/serp-rank/includes/vendor/google/apiclient/src/Google/autoload.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/serp-rank/includes/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Google\\Auth\\FetchAuthTokenInterface' not found in wp-content/plugins/serp-rank/includes/vendor/google/auth/src/FetchAuthTokenCache.php:26
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/serp-rank/includes/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/serp-rank/includes/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: google, seo
serp-rank/serp-rank.php Passed 13 tests
The main PHP file in "Keyword Rank Tracker" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
20 characters long description:
Keyword Rank Tracker
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin48,229 lines of code in 393 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 327 | 8,163 | 26,146 | 41,622 |
Markdown | 42 | 1,829 | 0 | 5,206 |
JSON | 15 | 0 | 0 | 1,287 |
YAML | 2 | 5 | 0 | 37 |
JavaScript | 2 | 3 | 54 | 25 |
CSS | 2 | 2 | 18 | 22 |
XML | 1 | 0 | 0 | 11 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 20.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 631.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 35 | |
Interfaces | 31 | |
Traits | 9 | |
Classes | 268 | |
▷ Abstract classes | 10 | 3.73% |
▷ Concrete classes | 258 | 96.27% |
▷ Final classes | 13 | 5.04% |
Methods | 2,424 | |
▷ Static methods | 145 | 5.98% |
▷ Public methods | 2,007 | 82.80% |
▷ Protected methods | 171 | 7.05% |
▷ Private methods | 246 | 10.15% |
Functions | 181 | |
▷ Named functions | 62 | 34.25% |
▷ Anonymous functions | 119 | 65.75% |
Constants | 348 | |
▷ Global constants | 24 | 6.90% |
▷ Class constants | 324 | 93.10% |
▷ Public constants | 305 | 94.14% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin