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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.60MB] [CPU: ▲2.95ms] Passed 4 tests
This is a short check of server-side resources used by WP Data Sync
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.60 | 39.21 ▲3.17 |
Dashboard /wp-admin | 3.91 ▲0.61 | 48.82 ▼0.95 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 51.07 ▲2.13 |
Add New Post /wp-admin/post-new.php | 6.53 ▲0.64 | 99.22 ▲13.34 |
Media Library /wp-admin/upload.php | 3.83 ▲0.60 | 40.39 ▲7.43 |
WP Data Sync /wp-admin/options-general.php?page=wp-data-sync | 3.73 | 36.28 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 65 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_data_sync_item_request |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
WPDSYNC_VERSION |
widget_theysaidso_widget |
widget_recent-comments |
wp_data_sync_post_title |
wp_data_sync_post_status |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Data Sync
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.34 ▼0.01 | 1.76 ▲0.19 | 40.38 ▼4.43 |
Dashboard /wp-admin | 2,198 ▲21 | 5.46 ▼0.07 | 81.52 ▼6.93 | 38.68 ▼2.40 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.97 ▼0.04 | 38.37 ▲1.97 | 35.35 ▲0.12 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.03 ▼0.11 | 614.30 ▼54.22 | 55.08 ▼3.98 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▼0.01 | 92.30 ▼3.76 | 41.18 ▼6.73 |
WP Data Sync /wp-admin/options-general.php?page=wp-data-sync | 877 | 1.90 | 26.70 | 48.78 |
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
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_data_sync_item_request
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- wp_data_sync_post_title
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- WPDSYNC_VERSION
- can_compress_scripts
- wp_data_sync_post_status
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function WP_DataSync\\App\\add_action() in wp-content/plugins/wp-data-sync/includes/functions/post-sync-status.php:20
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
wp-data-sync/wp-data-sync.php 92% from 13 tests
This is the main PHP file of "WP Data Sync" version 2.7.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected4,239 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 2,295 | 2,464 | 4,184 |
CSS | 2 | 10 | 5 | 55 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 21.88 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 235 | |
▷ Static methods | 32 | 13.62% |
▷ Public methods | 233 | 99.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.85% |
Functions | 54 | |
▷ Named functions | 13 | 24.07% |
▷ Anonymous functions | 41 | 75.93% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-32x32.png | 1.77KB | 1.21KB | ▼ 31.94% |