Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.60MB] [CPU: ▼276.92ms] Passed 4 tests
This is a short check of server-side resources used by Basic Landing Pages Wizard
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.65 ▲1.14 | 74.40 ▲21.05 |
Dashboard /wp-admin | 5.17 ▲1.77 | 52.55 ▲11.60 |
Posts /wp-admin/edit.php | 5.40 ▲1.77 | 57.90 ▲18.93 |
Add New Post /wp-admin/post-new.php | 8.68 ▲1.71 | 115.78 ▼1,149.56 |
Media Library /wp-admin/upload.php | 5.12 ▲1.83 | 43.36 ▲11.37 |
Basic Landing Pages /wp-admin/edit.php?post_type=blpw-landing-page | 5.15 | 57.78 |
Add New /wp-admin/post-new.php?post_type=blpw-landing-page | 5.32 | 59.36 |
Server storage [IO: ▲12.36MB] [DB: ▲1.73MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 1,030 new files
Database: 4 new tables, 1 new option
New tables |
---|
wp_lpw_states |
wp_lpw_cities |
wp_lpw_counties |
wp_lpw_countries |
New WordPress options |
---|
blpw_country |
Browser metrics Passed 4 tests
Checking browser requirements for Basic Landing Pages Wizard
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,921 ▲167 | 16.28 ▲0.64 | 6.27 ▲0.25 | 8.37 ▲5.89 |
Dashboard /wp-admin | 3,000 ▲146 | 6.73 ▲0.42 | 172.02 ▲6.90 | 179.38 ▲11.16 |
Posts /wp-admin/edit.php | 2,799 ▲105 | 3.18 ▼0.07 | 79.94 ▲11.15 | 239.33 ▲78.88 |
Add New Post /wp-admin/post-new.php | 1,754 ▲82 | 22.97 ▲2.21 | 469.08 ▲5.32 | 233.39 ▲56.42 |
Media Library /wp-admin/upload.php | 1,814 ▲119 | 5.91 ▲0.38 | 134.28 ▼24.51 | 195.83 ▲9.10 |
Basic Landing Pages /wp-admin/edit.php?post_type=blpw-landing-page | 1,476 | 3.38 | 110.13 | 142.06 |
Add New /wp-admin/post-new.php?post_type=blpw-landing-page | 1,971 | 4.31 | 116.11 | 142.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/basic-landing-pages-wizard/vendor/symfony/translation/Resources/bin/translation-status.php
- > /wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/pagination/resources/views/simple-bootstrap-4.blade.php
- > /wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/pagination/resources/views/default.blade.php
- > /wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/pagination/resources/views/simple-default.blade.php
- > /wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/pagination/resources/views/semantic-ui.blade.php
- > /wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/pagination/resources/views/bootstrap-4.blade.php
- 308× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WeDevs\\ORM\\Eloquent\\Model' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/tareq1988/wp-eloquent/src/WP/Post.php:13
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Extractor\\AbstractFileExtractor' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/symfony/translation/Extractor/PhpExtractor.php:22
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Database\\Eloquent\\Relations\\HasOneOrMany' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/database/Eloquent/Relations/HasMany.php:7
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/support/Facades/View.php:8
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Database\\Schema\\Builder' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/database/Schema/PostgresBuilder.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/basic-landing-pages-wizard/admin/plugins/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Filesystem\\Filesystem' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/contracts/Filesystem/Cloud.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/kylekatarnls/update-helper/src/UpdateHelper/ComposerPlugin.php:11
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/symfony/translation/Dumper/PoFileDumper.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/symfony/translation/Dumper/QtFileDumper.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=blpw-landing-page
- > Network (severe)
wp-admin/edit.php?post_type=blpw-landing-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/post-new.php?post_type=blpw-landing-page
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=blpw-landing-page 0:0 Uncaught SyntaxError: Unexpected token < in JSON at position 0
Optimizations
Plugin configuration 96% from 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
4 plugin tags: content, landing pages, seo, wizard
basic-landing-pages-wizard/basic-landing-pages-wizard.php 92% from 13 tests
Analyzing the main PHP file in "Basic Landing Pages Wizard" version 1.0.0
You should first fix the following items:
- Git Repository: Please remove the Git repository from this plugin
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/basic-landing-pages-wizard/vendor/nesbot/carbon/bin/upgrade-carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 22 | 0 | 0 | 252,191 |
PHP | 594 | 11,520 | 35,726 | 45,174 |
PO File | 127 | 14,323 | 18,502 | 32,368 |
SVG | 3 | 0 | 12 | 9,299 |
CSS | 18 | 279 | 1,224 | 5,323 |
XSD | 4 | 99 | 76 | 4,991 |
JavaScript | 12 | 938 | 708 | 3,543 |
Markdown | 14 | 396 | 0 | 1,147 |
XML | 17 | 8 | 4 | 340 |
Blade | 5 | 11 | 19 | 112 |
Qt Linguist | 1 | 0 | 0 | 10 |
YAML | 4 | 0 | 0 | 7 |
DOS Batch | 1 | 0 | 0 | 4 |
INI | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 157)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 157.00 |
Code structure | ||
---|---|---|
Namespaces | 96 | |
Interfaces | 106 | |
Traits | 18 | |
Classes | 396 | |
▷ Abstract classes | 30 | 7.58% |
▷ Concrete classes | 366 | 92.42% |
▷ Final classes | 1 | 0.27% |
Methods | 4,516 | |
▷ Static methods | 532 | 11.78% |
▷ Public methods | 3,511 | 77.75% |
▷ Protected methods | 890 | 19.71% |
▷ Private methods | 115 | 2.55% |
Functions | 379 | |
▷ Named functions | 157 | 41.42% |
▷ Anonymous functions | 222 | 58.58% |
Constants | 91 | |
▷ Global constants | 12 | 13.19% |
▷ Class constants | 79 | 86.81% |
▷ Public constants | 79 | 100.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
16 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/plugins/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
admin/plugins/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
all/template/images/ant-arrow-left.png | 0.57KB | 0.19KB | ▼ 66.55% |
admin/plugins/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
admin/plugins/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |