Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▲6.41ms] Passed 4 tests
A check of server-side resources used by Landing Lion Landing Pages
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.51 | 42.51 ▲5.16 |
Dashboard /wp-admin | 3.68 ▲0.37 | 53.52 ▲9.91 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 55.39 ▲13.89 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 99.69 ▲5.49 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 39.87 ▲5.07 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_ll_page_mappings |
New WordPress options |
---|
ll-proxy-error-message |
theysaidso_admin_options |
ll-routes-cache |
ll-client-domain |
db_upgraded |
widget_recent-comments |
ll-domain-id |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Landing Lion Landing Pages
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲82 | 13.33 ▼1.33 | 4.63 ▲2.63 | 41.95 ▲0.44 |
Dashboard /wp-admin | 2,245 ▲57 | 4.87 ▼1.02 | 110.89 ▼5.76 | 44.93 ▲0.59 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.14 ▲0.14 | 42.14 ▲6.27 | 38.88 ▲8.33 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 23.08 ▲5.67 | 648.35 ▲6.67 | 57.82 ▲16.81 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.20 ▼0.02 | 95.78 ▼0.29 | 43.89 ▲1.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function LandingLionWP\\Views\\add_action() in wp-content/plugins/landing-lion-landing-pages/App/Views/LLSettingsPage.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function LandingLionWP\\Views\\add_action() in wp-content/plugins/landing-lion-landing-pages/App/Views/LLSettingsPage.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
landing-lion-landing-pages/landing-lion-wpp.php 85% from 13 tests
The principal PHP file in "Landing Lion Landing Pages" v. 0.4.2 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 192 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("landing-lion-landing-pages.php" instead of "landing-lion-wpp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,494 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 232 | 16 | 1,284 |
JavaScript | 1 | 25 | 3 | 171 |
CSS | 2 | 9 | 3 | 39 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 13.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 43 | 62.32% |
▷ Public methods | 63 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 8.70% |
Functions | 26 | |
▷ Named functions | 19 | 73.08% |
▷ Anonymous functions | 7 | 26.92% |
Constants | 29 | |
▷ Global constants | 10 | 34.48% |
▷ Class constants | 19 | 65.52% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected