Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/smart-wp-seo/smart-wordpresss-seo.php+19
Use of undefined constant SWS_PLUGIN_TITLE - assumed 'SWS_PLUGIN_TITLE' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼58.46ms] Passed 4 tests
Server-side resources used by Smart Wordpress SEO
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.25 ▼38.57 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.70 ▼48.62 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.34 ▼46.67 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.60 ▼99.96 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.15 ▼33.70 |
Social Info /wp-admin/admin.php?page=sws-social | 2.05 | 6.62 |
XML sitemap /wp-admin/admin.php?page=sws-xmlsitemap | 2.05 | 6.60 |
Smart SEO /wp-admin/admin.php?page=sws-dashboard | 2.05 | 5.61 |
Image SEO /wp-admin/admin.php?page=sws-images | 2.05 | 6.44 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
sws_images_override |
sws_images_title |
theysaidso_admin_options |
sws_images_override_title |
can_compress_scripts |
db_upgraded |
sws_images_alt |
Browser metrics Passed 4 tests
Checking browser requirements for Smart Wordpress SEO
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲125 | 14.70 ▲0.41 | 1.71 ▲0.02 | 46.06 ▲0.29 |
Dashboard /wp-admin | 2,277 ▲100 | 5.66 ▼0.06 | 94.35 ▲6.27 | 42.33 ▲1.35 |
Posts /wp-admin/edit.php | 2,183 ▲83 | 2.03 ▲0.01 | 35.28 ▼0.61 | 33.08 ▼6.49 |
Add New Post /wp-admin/post-new.php | 6,325 ▲4,799 | 25.99 ▲2.44 | 937.19 ▲246.68 | 68.33 ▲13.49 |
Media Library /wp-admin/upload.php | 1,483 ▲86 | 4.23 ▲0.04 | 98.62 ▼2.89 | 45.48 ▲0.63 |
Social Info /wp-admin/admin.php?page=sws-social | 936 | 2.01 | 23.37 | 24.79 |
XML sitemap /wp-admin/admin.php?page=sws-xmlsitemap | 1,329 | 2.01 | 27.00 | 30.10 |
Smart SEO /wp-admin/admin.php?page=sws-dashboard | 956 | 2.01 | 22.46 | 36.20 |
Image SEO /wp-admin/admin.php?page=sws-images | 991 | 2.04 | 23.43 | 23.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/smart-wp-seo/smart-wordpresss-seo.php+19
Use of undefined constant SWS_PLUGIN_TITLE - assumed 'SWS_PLUGIN_TITLE' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 10 options
- sws_images_override
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- sws_images_alt
- sws_images_title
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- sws_images_override_title
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sws-images
- > Warning in wp-content/plugins/smart-wp-seo/smart-wordpresss-seo.php+19
Use of undefined constant SWS_PLUGIN_TITLE - assumed 'SWS_PLUGIN_TITLE' (this will throw an Error in a future version of PHP)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sws-images
- > Warning in wp-content/plugins/smart-wp-seo/smart-wordpresss-seo.php+21
Use of undefined constant SMT_HOME_KEYWORDS - assumed 'SMT_HOME_KEYWORDS' (this will throw an Error in a future version of PHP)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sws-images
- > Warning in wp-content/plugins/smart-wp-seo/smart-wordpresss-seo.php+22
Use of undefined constant SMT_HOME_DESCRIPTION - assumed 'SMT_HOME_DESCRIPTION' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sws-dashboard
- > Notice in wp-content/plugins/smart-wp-seo/lib/sws_site_admin_options.php+21
Undefined index: action
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/smart-wp-seo/lib/sws_xmlsitemap.php:140
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-wp-seo/lib/sws_site_admin_options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/smart-wp-seo/lib/sws_post_meta.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/smart-wp-seo/smart-wordpresss-seo.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/smart-wp-seo/lib/sws_images.php:185
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: live, bing, search engine, image seo, wordpress seo...
smart-wp-seo/smart-wordpresss-seo.php 85% from 13 tests
The primary PHP file in "Smart Wordpress SEO" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smart-wp-seo.php" instead of "smart-wordpresss-seo.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 152 characters long)
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
There were no executable files found in this plugin773 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 138 | 110 | 748 |
CSS | 1 | 4 | 0 | 25 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 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 | 22 | |
▷ Named functions | 22 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected