Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.08MB] [CPU: ▲97.18ms] Passed 4 tests
This is a short check of server-side resources used by WP-SEOstats
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 2,296.32 ▲2,271.57 |
Dashboard /wp-admin | 3.07 ▲0.01 | 284.17 ▲230.29 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 291.51 ▲247.78 |
Add New Post /wp-admin/post-new.php | 5.03 ▼0.40 | 329.10 ▼330.82 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 282.62 ▲241.47 |
Semrush Graphs /wp-admin/admin.php?page=WP_SEOstats_admin_semrush_graphs | 3.05 | 282.21 |
Alexa graphs /wp-admin/admin.php?page=WP_SEOstats_admin_Alexa_graphs | 3.05 | 278.39 |
WP-SEOstats /wp-admin/admin.php?page=WP_SEOstats_options | 3.06 | 329.95 |
Majestic SEO Graphs /wp-admin/admin.php?page=WP_SEOstats_admin_Majestic_SEO | 3.05 | 282.19 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WP-SEOstats
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,596 ▼1,000 | 4.04 ▼11.51 | 8.04 ▼1.60 | 51.73 ▼0.80 |
Dashboard /wp-admin | 3,159 ▲229 | 5.95 ▼0.02 | 136.55 ▼41.42 | 148.93 ▲34.29 |
Posts /wp-admin/edit.php | 2,783 ▲44 | 2.68 ▼0.00 | 69.14 ▼3.78 | 87.57 ▲1.46 |
Add New Post /wp-admin/post-new.php | 1,711 ▲28 | 18.72 ▲0.26 | 385.23 ▼3.43 | 116.29 ▼0.16 |
Media Library /wp-admin/upload.php | 1,854 ▲47 | 5.02 ▼0.02 | 166.61 ▲16.39 | 122.44 ▼2.01 |
Semrush Graphs /wp-admin/admin.php?page=WP_SEOstats_admin_semrush_graphs | 1,059 | 2.05 | 51.64 | 65.74 |
Alexa graphs /wp-admin/admin.php?page=WP_SEOstats_admin_Alexa_graphs | 1,158 | 2.05 | 54.95 | 75.98 |
WP-SEOstats /wp-admin/admin.php?page=WP_SEOstats_options | 1,155 | 2.09 | 56.45 | 70.48 |
Majestic SEO Graphs /wp-admin/admin.php?page=WP_SEOstats_admin_Majestic_SEO | 1,094 | 2.09 | 53.07 | 66.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=WP_SEOstats_admin_Majestic_SEO
- > Warning in wp-content/plugins/wp-seostats/Alexa-xml.php+13
simplexml_load_file(): http://data.alexa.com/data?cli=10&dat=snbamz&url=http://wp.com:1: parser error : Start tag expected, '<' not found
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=WP_SEOstats_admin_Majestic_SEO
- > Warning in wp-content/plugins/wp-seostats/Alexa-xml.php+13
simplexml_load_file(): Okay
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=WP_SEOstats_admin_Majestic_SEO
- > Warning in wp-content/plugins/wp-seostats/Alexa-xml.php+13
simplexml_load_file(): ^
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
Please take a closer look at the following
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/wp-seostats/Alexa-xml.php:7
- > PHP Fatal error
Uncaught Error: Class 'SEOstats\\SEOstats' not found in wp-content/plugins/wp-seostats/SEOstats/Services/Mozscape.php:19
- > PHP Fatal error
Uncaught Error: Class 'SEOstats\\SEOstats' not found in wp-content/plugins/wp-seostats/SEOstats/Services/Social.php:18
- > PHP Fatal error
Uncaught Error: Class 'SEOstats\\SEOstats' not found in wp-content/plugins/wp-seostats/SEOstats/Services/Alexa.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-seostats/WP-SEOstats.php:25
- > PHP Fatal error
Uncaught Error: Class 'SEOstats\\SEOstats' not found in wp-content/plugins/wp-seostats/SEOstats/Services/SemRush.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-seostats/SemRush-Graph.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-seostats/Alexa-Graph.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-seostats/Majestic-SEO.php:8
- > PHP Fatal error
Uncaught Error: Class 'SEOstats\\SEOstats' not found in wp-content/plugins/wp-seostats/SEOstats/Services/OpenSiteExplorer.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=WP_SEOstats_admin_Alexa_graphs
- > Network (severe)
http://traffic.alexa.com/graph?&o=f&c=1&y=t&b=ffffff&n=666666&w=660&h=330&r=1m&u=wp.com - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/admin.php?page=WP_SEOstats_admin_Alexa_graphs
- > Network (severe)
http://traffic.alexa.com/graph?&o=f&c=1&y=p&b=ffffff&n=666666&w=660&h=330&r=1m&u=wp.com - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/admin.php?page=WP_SEOstats_admin_Alexa_graphs
- > Network (severe)
http://traffic.alexa.com/graph?&o=f&c=1&y=u&b=ffffff&n=666666&w=660&h=330&r=1m&u=wp.com - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/admin.php?page=WP_SEOstats_admin_Alexa_graphs
- > Network (severe)
http://traffic.alexa.com/graph?&o=f&c=1&y=s&b=ffffff&n=666666&w=660&h=330&r=1m&u=wp.com - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/admin.php?page=WP_SEOstats_admin_Alexa_graphs
- > Network (severe)
http://traffic.alexa.com/graph?&o=f&c=1&y=b&b=ffffff&n=666666&w=660&h=330&r=1m&u=wp.com - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/admin.php?page=WP_SEOstats_admin_Alexa_graphs
- > Network (severe)
http://traffic.alexa.com/graph?&o=f&c=1&y=q&b=ffffff&n=666666&w=320&h=240&r=1m&u=wp.com - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
wp-seostats/WP-SEOstats.php 85% from 13 tests
"WP-SEOstats" version 2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-seostats.php" instead of "WP-SEOstats.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
No dangerous file extensions were detected2,668 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 475 | 1,094 | 2,296 |
PO File | 2 | 93 | 206 | 372 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 144 | |
▷ Static methods | 100 | 69.44% |
▷ Public methods | 123 | 85.42% |
▷ Protected methods | 5 | 3.47% |
▷ Private methods | 16 | 11.11% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 50 | |
▷ Global constants | 10 | 20.00% |
▷ Class constants | 40 | 80.00% |
▷ Public constants | 40 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/OSE.png | 1.19KB | 0.36KB | ▼ 69.98% |
img/Alexa.png | 1.32KB | 0.48KB | ▼ 63.63% |
img/arrow-up.png | 0.95KB | 0.17KB | ▼ 81.83% |
img/arrow-down.png | 0.95KB | 0.17KB | ▼ 81.85% |
img/Google.png | 1.29KB | 0.48KB | ▼ 62.96% |