Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼142.15ms] Passed 4 tests
A check of server-side resources used by WP/LR Sync Folders with Real Media Library
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.18 ▲0.34 | 37.11 ▼4.50 |
Dashboard /wp-admin | 3.30 ▲0.24 | 45.03 ▼1.90 |
Posts /wp-admin/edit.php | 3.35 ▲0.24 | 45.74 ▲8.12 |
Add New Post /wp-admin/post-new.php | 5.59 ▲0.16 | 94.97 ▼560.99 |
Media Library /wp-admin/upload.php | 3.18 ▲0.18 | 36.82 ▼1.21 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 58 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WP/LR Sync Folders with Real Media Library
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,738 ▲166 | 15.72 ▲0.24 | 9.63 ▲0.70 | 50.11 ▼4.97 |
Dashboard /wp-admin | 2,986 ▲55 | 6.03 ▲0.08 | 147.79 ▼4.68 | 115.79 ▼0.72 |
Posts /wp-admin/edit.php | 2,758 ▲19 | 2.69 ▼0.00 | 68.21 ▼0.11 | 100.24 ▲4.78 |
Add New Post /wp-admin/post-new.php | 1,695 ▲91 | 18.81 ▼0.01 | 389.99 ▼5.91 | 121.34 ▲2.43 |
Media Library /wp-admin/upload.php | 1,826 ▲19 | 5.06 ▲0.06 | 167.44 ▲12.40 | 130.53 ▼0.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 20× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/wplr-sync-folders/inc/base/Assets.class.php
- > /wp-content/plugins/wplr-sync-folders/inc/rest/Service.class.php
- > /wp-content/plugins/wplr-sync-folders/inc/folder/Root.class.php
- > /wp-content/plugins/wplr-sync-folders/inc/others/fallback-rest-api.php
- > /wp-content/plugins/wplr-sync-folders/index.php
- > /wp-content/plugins/wplr-sync-folders/inc/base/Base.class.php
- > /wp-content/plugins/wplr-sync-folders/inc/general/Activator.class.php
- > /wp-content/plugins/wplr-sync-folders/inc/folder/Folder.class.php
- > /wp-content/plugins/wplr-sync-folders/inc/others/fallback-php-version.php
- > /wp-content/plugins/wplr-sync-folders/inc/others/fallback-wplr.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
wplr-sync-folders/index.php 77% from 13 tests
The entry point to "WP/LR Sync Folders with Real Media Library" version 1.1.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wplr-sync-folders.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin1,446 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 265 | 606 | 1,207 |
JavaScript | 4 | 65 | 127 | 226 |
CSS | 4 | 4 | 4 | 12 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 11.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 15 | |
▷ Abstract classes | 3 | 20.00% |
▷ Concrete classes | 12 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 12 | 10.91% |
▷ Public methods | 104 | 94.55% |
▷ Protected methods | 2 | 1.82% |
▷ Private methods | 4 | 3.64% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 22 | |
▷ Global constants | 14 | 63.64% |
▷ Class constants | 8 | 36.36% |
▷ Public constants | 8 | 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
PNG images were not found in this plugin