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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.23MB] [CPU: ▼10.07ms] Passed 4 tests
A check of server-side resources used by Synchronize your staging site with your live site!
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 37.44 ▼7.48 |
Dashboard /wp-admin | 3.52 ▲0.22 | 47.22 ▼6.15 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 49.22 ▼1.39 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.35 | 83.01 ▼23.56 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 37.89 ▼3.07 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Synchronize your staging site with your live site!: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.39 ▲0.02 | 1.56 ▼0.59 | 40.73 ▼9.76 |
Dashboard /wp-admin | 2,218 ▲41 | 5.63 ▼0.04 | 84.80 ▼13.24 | 38.71 ▼5.21 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.03 ▲0.03 | 39.44 ▲0.60 | 36.23 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.22 ▼0.00 | 688.18 ▲25.05 | 54.95 ▲6.51 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.15 ▲0.03 | 109.16 ▼5.76 | 46.21 ▼0.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% 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)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function SSync\\plugin_dir_path() in wp-content/plugins/staging-sync/ssync.php:19
- > PHP Warning
Use of undefined constant SSYNC_ASSETS - assumed 'SSYNC_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/staging-sync/includes/settings_page.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/staging-sync/includes/settings_page.php:9
- > PHP Warning
Use of undefined constant SSYNC_ASSETS - assumed 'SSYNC_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/staging-sync/includes/not_loggedin.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/staging-sync/includes/not_loggedin.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: sync, copy posts, staging, live
staging-sync/ssync.php 62% from 13 tests
Analyzing the main PHP file in "Synchronize your staging site with your live site!" version 1.0.0
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("staging-sync.php" instead of "ssync.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Requires at least: Required version does not match the one declared in readme.txt ("4.9" instead of "5.2")
- Requires PHP: Required version does not match the one declared in readme.txt ("5.4" instead of "7.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected850 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 162 | 50 | 724 |
CSS | 1 | 19 | 0 | 119 |
JavaScript | 1 | 2 | 0 | 7 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 23.67 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.45% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ssync.png | 74.92KB | 32.04KB | ▼ 57.23% |
assets/images/staging.png | 2.60KB | 1.79KB | ▼ 31.16% |
assets/images/live.png | 1.94KB | 1.43KB | ▼ 26.34% |
assets/images/legiit.png | 8.33KB | 4.35KB | ▼ 47.80% |