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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.30MB] [CPU: ▼1.90ms] Passed 4 tests
A check of server-side resources used by LaunchPage.app Importer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 38.51 ▼2.10 |
Dashboard /wp-admin | 3.64 ▲0.34 | 46.06 ▼7.03 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 53.04 ▲8.20 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 85.67 ▲5.97 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 33.44 ▼4.45 |
Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 336 new files
Database: 1 new table, 6 new options
New tables |
---|
launch_page_importer_content |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
LaunchPage.app Importer: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 13.34 ▼0.97 | 1.75 ▲0.02 | 41.45 ▼1.67 |
Dashboard /wp-admin | 2,221 ▲30 | 5.84 ▲1.01 | 94.71 ▼5.91 | 38.73 ▼5.17 |
Posts /wp-admin/edit.php | 2,107 ▲21 | 2.03 ▲0.03 | 39.91 ▲3.25 | 34.48 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,528 ▲14 | 17.50 ▼0.31 | 630.80 ▼57.26 | 57.65 ▲6.84 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.20 ▼0.00 | 98.02 ▼3.93 | 43.51 ▼1.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- launch_page_importer_content
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 212× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/launchpage-app-importer/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/launchpage-app-importer/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/launchpage-app-importer/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/launchpage-app-importer/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/launchpage-app-importer/vendor/monolog/monolog/tests/Monolog/Handler/AbstractProcessingHandlerTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/launchpage-app-importer/vendor/monolog/monolog/tests/Monolog/Handler/InsightOpsHandlerTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/launchpage-app-importer/vendor/monolog/monolog/tests/Monolog/Handler/DynamoDbHandlerTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/launchpage-app-importer/vendor/monolog/monolog/tests/Monolog/Formatter/ScalarFormatterTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/launchpage-app-importer/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/launchpage-app-importer/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 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
3 plugin tags: sale page, landing pages, landing page
launchpage-app-importer/index.php 92% from 13 tests
Analyzing the main PHP file in "LaunchPage.app Importer" version 1.1
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("launchpage-app-importer.php" instead of "index.php")
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
Good job! No executable or dangerous file extensions detected26,873 lines of code in 316 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 284 | 4,942 | 11,063 | 22,129 |
Markdown | 18 | 1,231 | 0 | 3,992 |
JSON | 8 | 0 | 0 | 676 |
XML | 2 | 7 | 0 | 34 |
YAML | 1 | 4 | 0 | 14 |
Sass | 1 | 2 | 0 | 12 |
make | 1 | 4 | 0 | 9 |
CSS | 1 | 1 | 1 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 21 | |
Traits | 4 | |
Classes | 254 | |
▷ Abstract classes | 7 | 2.76% |
▷ Concrete classes | 247 | 97.24% |
▷ Final classes | 8 | 3.24% |
Methods | 1,784 | |
▷ Static methods | 101 | 5.66% |
▷ Public methods | 1,419 | 79.54% |
▷ Protected methods | 179 | 10.03% |
▷ Private methods | 186 | 10.43% |
Functions | 235 | |
▷ Named functions | 75 | 31.91% |
▷ Anonymous functions | 160 | 68.09% |
Constants | 108 | |
▷ Global constants | 4 | 3.70% |
▷ Class constants | 104 | 96.30% |
▷ Public constants | 104 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bundle/css/images/next_button.png | 16.98KB | 1.68KB | ▼ 90.09% |
bundle/css/images/prev_button.png | 17.01KB | 1.70KB | ▼ 90.00% |
bundle/css/images/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |