Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.25ms] Passed 4 tests
A check of server-side resources used by SEO Keywords
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.13 ▼1.66 |
Dashboard /wp-admin | 3.34 ▼0.01 | 50.94 ▼13.20 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.11 ▲4.27 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 85.90 ▼8.16 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.66 ▲2.02 |
Keywords /wp-admin/admin.php?page=seo-keywords | 3.27 | 33.69 |
SEO Plugins /wp-admin/admin.php?page=wp-seo-plugins-login | 3.29 | 34.41 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
SEO Keywords: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲178 | 13.59 ▼0.77 | 7.47 ▲5.37 | 37.03 ▼5.54 |
Dashboard /wp-admin | 2,233 ▲56 | 5.75 ▲0.05 | 90.24 ▲5.57 | 32.34 ▼8.88 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 2.17 ▲0.18 | 40.13 ▲4.70 | 30.72 ▼4.57 |
Add New Post /wp-admin/post-new.php | 6,447 ▲4,921 | 28.01 ▲4.41 | 925.02 ▲250.29 | 51.16 ▼14.83 |
Media Library /wp-admin/upload.php | 1,510 ▲110 | 4.49 ▲0.29 | 103.13 ▲7.00 | 43.36 ▲0.72 |
Keywords /wp-admin/admin.php?page=seo-keywords | 877 | 1.83 | 25.99 | 28.50 |
SEO Plugins /wp-admin/admin.php?page=wp-seo-plugins-login | 983 | 1.82 | 24.86 | 25.51 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/seo-keywords/admin/partials/seo-keywords-admin-display.php
- > /wp-content/plugins/seo-keywords/public/partials/seo-keywords-public-display.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant SEO_KEYWORDS_SITE_URL - assumed 'SEO_KEYWORDS_SITE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/seo-keywords/admin/partials/seo-keywords-admin-metabox.php on line 167
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/seo-keywords/admin/partials/seo-keywords-admin-metabox.php:168
- > PHP Warning
Use of undefined constant SEO_KEYWORDS_SERVER_REQUEST_URI - assumed 'SEO_KEYWORDS_SERVER_REQUEST_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/seo-keywords/admin/partials/seo-keywords-admin-metabox.php on line 167
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-keywords/admin/partials/seo-keywords-admin-settings.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-keywords/admin/partials/seo-keywords-admin-custom-settings.php:68
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
seo-keywords/seo-keywords.php Passed 13 tests
"SEO Keywords" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
124 characters long description:
SEO Keywords is a powerful plugin that helps you add keywords in your wordpress posts. Automate keywords building with ease!
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 plugin1,185 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 182 | 542 | 898 |
JavaScript | 3 | 34 | 66 | 191 |
CSS | 3 | 0 | 14 | 96 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 6.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 34 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 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 files were detected