Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼6.08ms] Passed 4 tests
A check of server-side resources used by TOP Sites URL list
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 23.99 ▼18.46 |
Dashboard /wp-admin | 3.49 ▲0.18 | 50.31 ▼1.49 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 51.57 ▲4.97 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 99.41 ▼3.50 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 36.49 ▼0.88 |
TOP Sites URL list /wp-admin/options-general.php?page=tsul_settings_page | 3.38 | 31.14 |
Server storage [IO: ▲6.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 156 new files
Database: no new tables, 16 new options
New WordPress options |
---|
tsul_google_uid |
tsul_google_authtoken |
theysaidso_admin_options |
tsul_google_token |
widget_recent-comments |
widget_tsul |
tsul_show_in_admin_tables |
widget_recent-posts |
tsul_cron_recurrance |
tsul_stats |
... |
Browser metrics Passed 4 tests
A check of browser resources used by TOP Sites URL list
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲121 | 14.01 ▼0.25 | 1.91 ▲0.18 | 40.24 ▼0.59 |
Dashboard /wp-admin | 2,249 ▲58 | 5.34 ▼0.55 | 106.57 ▲5.43 | 39.81 ▲0.21 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.19 ▲0.14 | 45.38 ▲5.55 | 36.99 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 23.38 ▲0.33 | 618.34 ▼60.17 | 35.61 ▼21.78 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.68 ▲0.48 | 100.93 ▲1.63 | 42.50 ▼3.23 |
TOP Sites URL list /wp-admin/options-general.php?page=tsul_settings_page | 851 | 2.17 | 30.34 | 28.81 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 16 options
- widget_recent-posts
- widget_tsul
- tsul_stats
- widget_theysaidso_widget
- tsul_google_authtoken
- tsul_google_token
- db_upgraded
- can_compress_scripts
- tsul_first_fetch
- theysaidso_admin_options
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 82× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/top-sites-url-list/google-api-php-client/src/Google/Service/Freebase.php:31
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/top-sites-url-list/widget.php:5
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/top-sites-url-list/google-api-php-client/src/Google/Service/Dns.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/top-sites-url-list/google-api-php-client/src/Google/Service/Tasks.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/top-sites-url-list/google-api-php-client/src/Google/Service/Reseller.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/top-sites-url-list/google-api-php-client/src/Google/Service/Dataflow.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/top-sites-url-list/google-api-php-client/src/Google/Service/AndroidPublisher.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/top-sites-url-list/google-api-php-client/src/Google/Service/Audit.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/top-sites-url-list/google-api-php-client/src/Google/Service/TagManager.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/top-sites-url-list/google-api-php-client/src/Google/Service/AdSenseHost.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== top-sites-url-list ===
)
top-sites-url-list/top-sites-url-list.php Passed 13 tests
The main PHP file in "TOP Sites URL list" ver. 1.7.1 adds more information about the plugin and also serves as the entry point for this plugin
91 characters long description:
This plugin provides a list of top visited sites on your web based on Google Analytics API.
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin180,234 lines of code in 140 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 131 | 10,793 | 31,870 | 167,128 |
JavaScript | 3 | 2,135 | 1,156 | 11,829 |
CSS | 4 | 65 | 54 | 1,199 |
Markdown | 2 | 49 | 0 | 78 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 1.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 1.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 2,996 | |
▷ Abstract classes | 6 | 0.20% |
▷ Concrete classes | 2,990 | 99.80% |
▷ Final classes | 0 | 0.00% |
Methods | 23,619 | |
▷ Static methods | 13 | 0.06% |
▷ Public methods | 23,552 | 99.72% |
▷ Protected methods | 30 | 0.13% |
▷ Private methods | 37 | 0.16% |
Functions | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
Constants | 253 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 253 | 100.00% |
▷ Public constants | 253 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
images/ui/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
images/ui/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
images/ui/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
images/ui/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |