Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▲0.04ms] Passed 4 tests
This is a short check of server-side resources used by Reachu Export
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 39.13 ▼2.31 |
Dashboard /wp-admin | 3.84 ▲0.54 | 48.82 ▲0.07 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 48.56 ▼0.49 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.48 | 92.46 ▲5.77 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 34.56 ▲2.88 |
Server storage [IO: ▲3.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 1,000 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Reachu Export
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲30 | 14.07 ▼0.27 | 1.65 ▼0.05 | 35.30 ▼8.09 |
Dashboard /wp-admin | 2,197 ▲20 | 5.61 ▲0.01 | 91.39 ▼13.80 | 40.39 ▼3.42 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.02 ▲0.06 | 39.66 ▼0.21 | 36.36 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,528 ▼1 | 23.03 ▼0.38 | 579.11 ▼3.91 | 48.16 ▼8.91 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.22 ▲0.04 | 95.92 ▼1.45 | 40.49 ▼3.47 |
Uninstaller [IO: ▲3.45MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attentionThis plugin did not uninstall successfully, leaving 12 options in the database
- Uninstall procedure had uncaught errors
- > Error in wp-content/plugins/outshifter-export/index.php+151
Uncaught Error: Call to undefined function wc_get_logger() in wp-content/plugins/outshifter-export/index.php:151
Stack trace:
#0 wp-content/plugins/outshifter-export/index.php(93): OSEWCPHJC_reachuSync::log()
#1 wp-content/plugins/outshifter-export/index.php(139): OSEWCPHJC_reachuSync::remove_webhook()
#2 wp-content/plugins/outshifter-export/index.php(85): OSEWCPHJC_reachuSync::plugin_uninstall()
#3 wp-includes/class-wp-hook.php(310): OSEWCPHJC_reachuSync::{closure}()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/includes/plugin.php(816): do_action() - This plugin has failed uninstalling correctly, leaving 1,000 files (3.45MB) in the plugin directory
- (new file) js/script.js
- (new file) css/index.css
- (new file) img/check.png
- (new file) img/icon.png
- (new file) vendor/autoload.php
- (new file) img/icon.svg
- (new file) README.txt
- (new file) vendor/bin/google-cloud-batch
- (new file) index.php
- (new file) js/settings-reachu.js
- ...
- wc_reachu_password
- firebaseUserId
- widget_recent-comments
- can_compress_scripts
- wc_reachu_currency
- theysaidso_admin_options
- recovery_mode_email_last_sent
- wc_reachu_apikey
- widget_theysaidso_widget
- wc_reachu_user
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/outshifter-export/vendor/bin/jp.php
- > /wp-content/plugins/outshifter-export/vendor/mtdowling/jmespath.php/bin/jp.php
- 459× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/outshifter-export/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php:22
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/outshifter-export/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Cache\\CacheException' not found in wp-content/plugins/outshifter-export/vendor/psr/cache/src/InvalidArgumentException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Kreait\\Firebase\\Exception\\AuthException' not found in wp-content/plugins/outshifter-export/vendor/kreait/firebase-php/src/Firebase/Exception/Auth/ExpiredOobCode.php:10
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/outshifter-export/vendor/monolog/monolog/src/Monolog/Handler/ElasticaHandler.php:36
- > PHP Fatal error
Uncaught Error: Interface 'Prophecy\\Argument\\Token\\TokenInterface' not found in wp-content/plugins/outshifter-export/vendor/google/cloud-core/src/Testing/ArrayHasSameValuesToken.php:14
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\CredentialsLoader' not found in wp-content/plugins/outshifter-export/vendor/google/auth/src/Credentials/GCECredentials.php:57
- > PHP Fatal error
Trait 'Google\\Cloud\\Core\\Batch\\BatchDaemonTrait' not found in wp-content/plugins/outshifter-export/vendor/google/cloud-core/src/Batch/SimpleJobTrait.php on line 30
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/outshifter-export/vendor/google/cloud-storage/src/WriteStream.php:29
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/outshifter-export/vendor/lcobucci/jwt/test/unit/Signer/BaseSignerTest.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3 in outshifter-export/assets to your readme.txt
outshifter-export/index.php 92% from 13 tests
The main PHP file in "Reachu Export" ver. 3.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("outshifter-export.php" instead of "index.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/outshifter-export/vendor/bin/google-cloud-batch.bat
- ☣ wp-content/plugins/outshifter-export/vendor/bin/jp.php.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 809 | 11,668 | 32,256 | 50,324 |
JSON | 55 | 12 | 0 | 13,598 |
Markdown | 48 | 1,974 | 0 | 5,656 |
XSLT | 2 | 23 | 20 | 209 |
YAML | 6 | 18 | 2 | 148 |
JavaScript | 2 | 6 | 0 | 145 |
C | 2 | 35 | 70 | 132 |
CSS | 1 | 15 | 0 | 83 |
make | 3 | 23 | 16 | 64 |
reStructuredText | 1 | 35 | 29 | 59 |
XML | 3 | 5 | 0 | 53 |
m4 | 1 | 11 | 14 | 38 |
C/C++ Header | 1 | 10 | 18 | 25 |
Bourne Shell | 2 | 7 | 17 | 24 |
Dockerfile | 1 | 8 | 0 | 10 |
DOS Batch | 2 | 0 | 0 | 8 |
SVG | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 115 | |
Interfaces | 83 | |
Traits | 55 | |
Classes | 641 | |
▷ Abstract classes | 19 | 2.96% |
▷ Concrete classes | 622 | 97.04% |
▷ Final classes | 198 | 31.83% |
Methods | 4,082 | |
▷ Static methods | 442 | 10.83% |
▷ Public methods | 3,226 | 79.03% |
▷ Protected methods | 222 | 5.44% |
▷ Private methods | 634 | 15.53% |
Functions | 356 | |
▷ Named functions | 117 | 32.87% |
▷ Anonymous functions | 239 | 67.13% |
Constants | 457 | |
▷ Global constants | 59 | 12.91% |
▷ Class constants | 398 | 87.09% |
▷ Public constants | 378 | 94.97% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/check.png | 15.15KB | 15.15KB | 0.01% |
img/icon.png | 0.19KB | 0.17KB | ▼ 8.42% |