Benchmarks
Plugin footprint 40% 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
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/site2site/includes/class_copier.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; S2S_copier has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼54.10ms] Passed 4 tests
An overview of server-side resources used by site2site
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.30 ▼34.81 |
Dashboard /wp-admin | 2.19 ▼1.11 | 6.49 ▼44.24 |
Posts /wp-admin/edit.php | 2.19 ▼1.16 | 8.62 ▼42.96 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.69 | 5.81 ▼94.39 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 5.65 ▼32.10 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by site2site
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.27 ▼1.13 | 5.30 ▲3.54 | 42.14 ▼1.31 |
Dashboard /wp-admin | 2,210 ▲19 | 4.88 ▼0.22 | 112.95 ▲4.21 | 42.42 ▼4.99 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.02 | 44.42 ▲7.04 | 33.61 ▼3.18 |
Add New Post /wp-admin/post-new.php | 1,523 ▲4 | 23.06 ▼0.17 | 670.60 ▼18.81 | 51.45 ▼0.13 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.33 ▲0.11 | 97.99 ▼4.84 | 42.26 ▼7.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/site2site/includes/class_copier.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; S2S_copier has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site2site/site2site.php:34
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: multisite, copy posts, copy content
site2site/site2site.php Passed 13 tests
This is the main PHP file of "site2site" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
71 characters long description:
Copies any content from one site to another in a multisite installation
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin569 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 143 | 42 | 409 |
JavaScript | 1 | 19 | 16 | 138 |
CSS | 1 | 4 | 0 | 22 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin