Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼140.48ms] Passed 4 tests
A check of server-side resources used by Landing Page Settings for Genesis
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.00 | 36.39 ▼2.27 |
Dashboard /wp-admin | 3.06 ▲0.00 | 46.33 ▲4.56 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 48.52 ▲13.53 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 102.50 ▼560.00 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 35.12 ▼4.22 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Landing Page Settings for Genesis
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲82 | 16.14 ▲0.65 | 7.60 ▼0.69 | 52.50 ▲2.28 |
Dashboard /wp-admin | 2,973 ▲36 | 5.86 ▼0.09 | 149.91 ▲5.76 | 126.90 ▲9.80 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.01 | 68.44 ▲1.49 | 88.64 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.68 ▼0.10 | 406.45 ▲7.88 | 117.33 ▲11.29 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.03 | 167.86 ▲13.84 | 124.41 ▼2.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant GLPS_PLUGIN_DIR - assumed 'GLPS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/landing-page-settings-for-genesis/functions/glps-mobile-detection.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/landing-page-settings-for-genesis/admin/glps-admin.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/landing-page-settings-for-genesis/functions/glps-functions.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/landing-page-settings-for-genesis/landing-page-settings-for-genesis.php:18
- > PHP Fatal error
Uncaught Error: Class 'Mobile_Detect' not found in wp-content/plugins/landing-page-settings-for-genesis/functions/glps-mobile-detection.php:19
- > PHP Warning
include_once(GLPS_PLUGIN_DIRfunctions/mobile-detect.php): failed to open stream: No such file or directory in wp-content/plugins/landing-page-settings-for-genesis/functions/glps-mobile-detection.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/landing-page-settings-for-genesis/admin/glps-lp-settings-regular.php:17
- > PHP Warning
include_once(): Failed opening 'GLPS_PLUGIN_DIRfunctions/mobile-detect.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/landing-page-settings-for-genesis/functions/glps-mobile-detection.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/landing-page-settings-for-genesis/admin/glps-lp-settings-mobile.php:17
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add a description for screenshot #2 in landing-page-settings-for-genesis/assets to your readme.txt
landing-page-settings-for-genesis/landing-page-settings-for-genesis.php 92% from 13 tests
"Landing Page Settings for Genesis" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin1,702 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 565 | 928 | 1,657 |
CSS | 1 | 12 | 13 | 27 |
JavaScript | 1 | 3 | 0 | 18 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.71 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.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 | 40 | |
▷ Static methods | 9 | 22.50% |
▷ Public methods | 38 | 95.00% |
▷ Protected methods | 2 | 5.00% |
▷ Private methods | 0 | 0.00% |
Functions | 47 | |
▷ Named functions | 47 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 5 | 35.71% |
▷ Class constants | 9 | 64.29% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.25MB with 0.17MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/regular-viewport.png | 108.48KB | 34.22KB | ▼ 68.46% |
screenshots/mobile-viewport.png | 145.44KB | 44.83KB | ▼ 69.18% |