Benchmarks
Plugin footprint 65% from 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.01MB] [CPU: ▼8.14ms] Passed 4 tests
A check of server-side resources used by Replicant
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.69 ▲0.64 |
Dashboard /wp-admin | 3.32 ▼0.02 | 51.27 ▼16.09 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 52.73 ▼3.18 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.37 ▼13.93 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.93 ▲5.37 |
Replicant /wp-admin/admin.php?page=replicant-dashboard | 3.24 | 35.14 |
Nodes /wp-admin/admin.php?page=replicant-nodes | 3.29 | 37.17 |
Settings /wp-admin/admin.php?page=replicant-settings | 3.25 | 35.57 |
Server storage [IO: ▲19.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 1,288 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_replicant_logs |
wp_replicant_nodes |
wp_replicant_settings |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
replicant_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Replicant
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.41 ▲0.06 | 1.90 ▲0.09 | 44.03 ▲4.03 |
Dashboard /wp-admin | 2,209 ▲35 | 5.66 ▲0.05 | 92.70 ▼1.86 | 76.05 ▲32.70 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.99 ▼0.03 | 34.95 ▼4.47 | 33.53 ▼15.96 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 18.30 ▼4.78 | 676.36 ▼18.15 | 58.74 ▲5.97 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.21 ▼0.18 | 96.93 ▼3.50 | 78.58 ▲35.80 |
Replicant /wp-admin/admin.php?page=replicant-dashboard | 797 | 2.13 | 26.11 | 24.77 |
Nodes /wp-admin/admin.php?page=replicant-nodes | 971 | 2.01 | 24.84 | 27.60 |
Settings /wp-admin/admin.php?page=replicant-settings | 856 | 2.00 | 24.64 | 25.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_replicant_settings
- wp_replicant_nodes
- wp_replicant_logs
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- replicant_db_version
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/replicant/trunk/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- > /wp-content/plugins/replicant/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 336× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\File_Field' not found in wp-content/plugins/replicant/vendor/htmlburger/carbon-fields/core/Field/Image_Field.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/replicant/vendor/guzzlehttp/psr7/src/CachingStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/replicant/trunk/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Contain_Comparer.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/replicant/vendor/guzzlehttp/promises/src/Coroutine.php:45
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/replicant/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Any_Equality_Comparer.php:5
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/replicant/trunk/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Ancestor_ID_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/replicant/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Parent_ID_Condition.php:8
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/replicant/trunk/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/replicant/trunk/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/replicant/trunk/vendor/guzzlehttp/psr7/src/CachingStream.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== replicant ===
)
replicant/replicant.php Passed 13 tests
The main PHP script in "Replicant" version 0.7.0 is automatically included on every request by WordPress
45 characters long description:
Synchronize your WordPress websites with ease
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
Good job! No executable or dangerous file extensions detected42,815 lines of code in 577 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 283 | 4,808 | 12,616 | 19,064 |
JavaScript | 174 | 5,194 | 8,463 | 12,962 |
Markdown | 17 | 1,192 | 0 | 3,582 |
PO File | 27 | 925 | 1,136 | 2,448 |
Sass | 49 | 372 | 9 | 1,925 |
CSS | 8 | 325 | 1,139 | 1,663 |
JSON | 15 | 0 | 0 | 1,127 |
XML | 1 | 0 | 0 | 28 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
Bourne Shell | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 62 | |
Traits | 12 | |
Classes | 430 | |
▷ Abstract classes | 22 | 5.12% |
▷ Concrete classes | 408 | 94.88% |
▷ Final classes | 72 | 17.65% |
Methods | 3,386 | |
▷ Static methods | 492 | 14.53% |
▷ Public methods | 2,796 | 82.58% |
▷ Protected methods | 338 | 9.98% |
▷ Private methods | 252 | 7.44% |
Functions | 450 | |
▷ Named functions | 106 | 23.56% |
▷ Anonymous functions | 344 | 76.44% |
Constants | 182 | |
▷ Global constants | 10 | 5.49% |
▷ Class constants | 172 | 94.51% |
▷ Public constants | 150 | 87.21% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.25MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/icon_16x16.png | 2.10KB | 0.51KB | ▼ 75.65% |
replicant.png | 60.18KB | 36.65KB | ▼ 39.10% |
trunk/replicant.png | 60.18KB | 36.65KB | ▼ 39.10% |
resources/icon_big.png | 61.75KB | 42.69KB | ▼ 30.87% |
trunk/resources/icon_big.png | 61.75KB | 42.69KB | ▼ 30.87% |