Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼4.91ms] Passed 4 tests
This is a short check of server-side resources used by Simple Sugarsync Upload
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 40.78 ▲2.66 |
Dashboard /wp-admin | 3.46 ▲0.11 | 45.64 ▼17.07 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 47.91 ▲5.04 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 90.49 ▼4.31 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 35.74 ▼0.90 |
Simple SugarSync /wp-admin/options-general.php?page=simple-sugarsync-upload/simple-sugarsync.php | 3.32 | 30.30 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 12 new options
New WordPress options |
---|
wp_ssync_secret |
wp_ssync_version_number |
widget_theysaidso_widget |
wp_ssync_key |
widget_recent-comments |
widget_recent-posts |
wp_ssync_show_form |
theysaidso_admin_options |
wp_ssync_temp_path |
wp_ssync_menu_pref |
... |
Browser metrics Passed 4 tests
Simple Sugarsync Upload: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 13.27 ▼1.11 | 2.10 ▲0.34 | 44.13 ▲4.63 |
Dashboard /wp-admin | 2,210 ▲22 | 4.80 ▼0.10 | 107.70 ▲2.27 | 40.80 ▼1.43 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.03 ▲0.03 | 39.27 ▲1.90 | 33.91 ▲4.17 |
Add New Post /wp-admin/post-new.php | 1,522 ▲1 | 23.51 ▲0.49 | 593.80 ▼56.28 | 63.26 ▲6.24 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.17 ▼0.08 | 95.26 ▼6.22 | 41.99 ▼2.76 |
Simple SugarSync /wp-admin/options-general.php?page=simple-sugarsync-upload/simple-sugarsync.php | 1,011 | 2.19 | 27.99 | 26.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
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)
Smoke test failed, please fix the following
- 25 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-sugarsync-upload/simple-sugarsync.php
- > Warning in wp-content/plugins/simple-sugarsync-upload/simple-sugarsync.php+427
Use of undefined constant simpleSsyncUpload - assumed 'simpleSsyncUpload' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=simple-sugarsync-upload/simple-sugarsync.php
- > Notice in wp-content/plugins/simple-sugarsync-upload/simple-sugarsync.php+271
Undefined index: wp_ssync_submit_hidden
- > GET request to /wp-admin/options-general.php?page=simple-sugarsync-upload/simple-sugarsync.php
- > Notice in wp-content/plugins/simple-sugarsync-upload/simple-sugarsync.php+338
Undefined variable: reset
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-sugarsync-upload/simple-sugarsync.php:571
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Admin Panel.), #2 (Before a file is uploaded by user.), #3 (After a file is uploaded by user.)
simple-sugarsync-upload/simple-sugarsync.php 92% from 13 tests
The main file in "Simple Sugarsync Upload" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-sugarsync-upload.php" instead of "simple-sugarsync.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected607 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 219 | 122 | 607 |
CSS | 1 | 1 | 1 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 8.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sugarsync-icon.png | 0.84KB | 0.93KB | 0.00% |
screenshot-2.png | 51.16KB | 28.33KB | ▼ 44.62% |
screenshot-3.png | 51.62KB | 27.98KB | ▼ 45.80% |