Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/wp-composer-sync/wp-composer-sync.php+38
file_get_contents(../composer.json): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.15ms] Passed 4 tests
Analyzing server-side resources used by WP Composer Sync
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 33.86 ▼5.67 |
Dashboard /wp-admin | 3.33 ▼0.02 | 41.87 ▼16.98 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.39 ▼3.35 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.77 ▼14.61 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.65 ▼1.17 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Composer Sync
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.01 | 4.11 ▲2.41 | 39.91 ▼7.80 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▼0.07 | 110.01 ▼6.96 | 42.99 ▲0.76 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.05 ▼0.00 | 36.50 ▲0.58 | 30.33 ▼3.68 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.26 ▼0.05 | 691.33 ▼1.81 | 52.81 ▼5.79 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.03 | 96.15 ▼17.68 | 40.22 ▼5.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: composer
wp-composer-sync/wp-composer-sync.php Passed 13 tests
The main PHP script in "WP Composer Sync" version 1.0 is automatically included on every request by WordPress
88 characters long description:
Automatically keeps your composer.json file in sync with plugins installed via wp-admin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected180 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 26 | 59 | 91 |
Markdown | 1 | 25 | 0 | 71 |
JSON | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin