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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.87ms] Passed 4 tests
An overview of server-side resources used by WordSync
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.00 ▼1.61 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.39 ▼5.41 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 43.31 ▼1.60 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 89.95 ▲1.56 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 32.55 ▲1.15 |
WordSync /wp-admin/tools.php?page=wordsync | 3.30 | 32.21 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordSync
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.25 ▼1.03 | 1.72 ▼0.03 | 40.89 ▼6.26 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▲0.01 | 95.79 ▼36.34 | 38.75 ▼4.53 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.04 | 34.34 ▼3.50 | 35.33 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.23 ▼4.77 | 660.09 ▼34.42 | 57.07 ▼5.55 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.18 ▼0.08 | 98.71 ▼2.50 | 41.68 ▼6.56 |
WordSync /wp-admin/tools.php?page=wordsync | 918 | 2.10 | 27.46 | 47.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/wordsync/admin/partials/settingspage.php:30
- > PHP Fatal error
Uncaught Error: Class 'BraveWordsync_Processor' not found in wp-content/plugins/wordsync/includes/sync/processors/class-wordsync-taxonomy-processor.php:9
- > PHP Fatal error
Uncaught Error: Class 'BraveWordsync_Processor' not found in wp-content/plugins/wordsync/includes/sync/processors/class-wordsync-attachment-processor.php:9
- > PHP Notice
Undefined index: wordsync_admin in wp-content/plugins/wordsync/admin/partials/mainpage.php on line 15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/wordsync/includes/logging/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/wordsync/includes/logging/logger.php:29
- > PHP Fatal error
Uncaught Error: Class 'BraveWordsync_Processor' not found in wp-content/plugins/wordsync/includes/sync/processors/class-wordsync-post-processor.php:9
- > PHP Fatal error
Uncaught Error: Class 'BraveWordsync_Processor' not found in wp-content/plugins/wordsync/includes/sync/processors/class-wordsync-settings-processor.php:9
- > PHP Fatal error
Uncaught Error: Class 'BraveWordsync_Processor' not found in wp-content/plugins/wordsync/includes/sync/processors/class-wordsync-user-processor.php:9
- > PHP Notice
Undefined index: wordsync_admin in wp-content/plugins/wordsync/admin/partials/settingspage.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: synchronise, sync, backup, migration, merge
wordsync/brave-wordsync.php 92% from 13 tests
The primary PHP file in "WordSync" version 0.1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wordsync.php" instead of "brave-wordsync.php")
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
Success! There were no dangerous files found in this plugin5,681 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 1,024 | 1,347 | 3,710 |
JavaScript | 3 | 211 | 32 | 1,019 |
Sass | 3 | 147 | 7 | 630 |
CSS | 1 | 18 | 1 | 322 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 19.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 2 | 8.00% |
▷ Concrete classes | 23 | 92.00% |
▷ Final classes | 0 | 0.00% |
Methods | 249 | |
▷ Static methods | 21 | 8.43% |
▷ Public methods | 185 | 74.30% |
▷ Protected methods | 45 | 18.07% |
▷ Private methods | 19 | 7.63% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 35 | |
▷ Global constants | 1 | 2.86% |
▷ Class constants | 34 | 97.14% |
▷ Public constants | 34 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin