Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.96MB] [CPU: ▼37.83ms] Passed 4 tests
Analyzing server-side resources used by Domain Sharding
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.16 ▼2.82 |
Dashboard /wp-admin | 3.00 ▼0.35 | 23.59 ▼35.60 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 24.29 ▼22.62 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 22.63 ▼80.73 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 21.96 ▼12.36 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Domain Sharding
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.29 ▼1.09 | 1.74 ▼0.03 | 43.57 ▼3.93 |
Dashboard /wp-admin | 2,214 ▲23 | 4.84 ▼0.06 | 101.51 ▼15.97 | 40.35 ▼2.78 |
Posts /wp-admin/edit.php | 2,099 ▲13 | 2.05 ▲0.04 | 35.19 ▼2.54 | 32.97 ▼3.08 |
Add New Post /wp-admin/post-new.php | 1,524 ▼9 | 17.40 ▼5.73 | 663.45 ▼24.49 | 48.40 ▼8.69 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.24 ▲0.04 | 102.33 ▼1.51 | 43.69 ▼5.31 |
Domain Sharding /wp-admin/domain-sharding.php | 26 | 0.44 | 0.12 | 16.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/domain-sharding/domain-sharding.php:76
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/domain-sharding.php
- > Network (severe)
wp-admin/domain-sharding.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: cdn, speed, optimization, domain sharding, wpo
domain-sharding/domain-sharding.php 92% from 13 tests
The main PHP file in "Domain Sharding" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin423 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 87 | 10 | 423 |
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.33 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 55.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
There were not PNG files found in your plugin