Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/multisite-mediasync/multisite-mediasync.php+47
Methods with the same name as their class will not be constructors in a future version of PHP; MultisiteMediaSync has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼52.68ms] Passed 4 tests
Server-side resources used by Multisite MediaSync
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.07 ▼31.48 |
Dashboard /wp-admin | 2.11 ▼1.19 | 5.64 ▼42.33 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 5.73 ▼43.24 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.40 ▼93.68 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.00 ▼27.30 |
Multisite MediaSync /wp-admin/tools.php?page=multisite-mediasync | 2.11 | 5.36 |
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: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Multisite MediaSync
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.32 ▼0.33 | 1.73 ▲0.26 | 42.20 ▼0.17 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▲0.08 | 91.20 ▼1.68 | 41.10 ▲0.97 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.01 | 39.68 ▼1.83 | 36.28 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.42 ▼0.25 | 647.06 ▼9.80 | 55.59 ▼14.53 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.21 ▼0.07 | 97.31 ▲0.07 | 46.70 ▲0.64 |
Multisite MediaSync /wp-admin/tools.php?page=multisite-mediasync | 778 | 2.17 | 22.67 | 25.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/multisite-mediasync/multisite-mediasync.php+47
Methods with the same name as their class will not be constructors in a future version of PHP; MultisiteMediaSync has a deprecated constructor
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/tools.php?page=multisite-mediasync
- > Deprecated in wp-content/plugins/multisite-mediasync/multisite-mediasync.php+47
Methods with the same name as their class will not be constructors in a future version of PHP; MultisiteMediaSync has a deprecated constructor
- > GET request to /wp-admin/tools.php?page=multisite-mediasync
- > Deprecated in wp-content/plugins/multisite-mediasync/multisite-mediasync.php+173
Function create_function() is deprecated
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× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-mediasync/multisite-mediasync.php:173
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
multisite-mediasync/multisite-mediasync.php Passed 13 tests
This is the main PHP file of "Multisite MediaSync" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
107 characters long description:
Multisite MediaSync syncs the Media Posts in WP Posts tables for all blogs within a multisite installation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected167 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 82 | 53 | 167 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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/handschlag-logo-color_130@2x.png | 3.83KB | 2.85KB | ▼ 25.68% |