Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/landing-page-rockstar/metabox/init.php+810
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.82ms] Passed 4 tests
An overview of server-side resources used by Landing Page Rockstar - BETA
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.86 ▼36.46 |
Dashboard /wp-admin | 2.05 ▼1.25 | 6.41 ▼40.34 |
Posts /wp-admin/edit.php | 2.05 ▼1.30 | 6.30 ▼42.06 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 8.11 ▼88.40 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.52 ▼25.72 |
Landing Page Options /wp-admin/admin.php | 2.05 | 6.10 |
All Landing Pages /wp-admin/edit.php?post_type=landingpage | 2.05 | 6.31 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=landingpage | 2.05 | 6.29 |
Add New /wp-admin/post-new.php?post_type=landingpage | 2.05 | 6.12 |
Group /wp-admin/edit-tags.php?taxonomy=group&post_type=landingpage | 2.05 | 12.96 |
Server storage [IO: ▲1.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 116 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
category_children |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Landing Page Rockstar - BETA: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,988 ▲253 | 15.04 ▲0.86 | 1.70 ▼0.00 | 39.12 ▼5.30 |
Dashboard /wp-admin | 2,391 ▲203 | 6.49 ▲0.58 | 136.19 ▲29.47 | 36.82 ▼5.02 |
Posts /wp-admin/edit.php | 2,296 ▲207 | 3.43 ▲1.42 | 56.45 ▲16.42 | 31.73 ▼3.53 |
Add New Post /wp-admin/post-new.php | 1,598 ▲201 | 18.63 ▲0.73 | 602.90 ▼19.09 | 33.77 ▼38.49 |
Media Library /wp-admin/upload.php | 1,437 ▲52 | 4.29 ▲0.09 | 80.39 ▼21.05 | 39.34 ▼3.14 |
Landing Page Options /wp-admin/admin.php | 8 | 0.44 | 0.08 | 0.11 |
All Landing Pages /wp-admin/edit.php?post_type=landingpage | 1,361 | 3.43 | 47.30 | 27.51 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=landingpage | 1,661 | 3.27 | 44.57 | 29.79 |
Add New /wp-admin/post-new.php?post_type=landingpage | 4,072 | 10.09 | 278.21 | 129.80 |
Group /wp-admin/edit-tags.php?taxonomy=group&post_type=landingpage | 1,480 | 3.25 | 40.30 | 28.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/landing-page-rockstar/metabox/init.php+810
count(): Parameter must be an array or an object that implements Countable
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- category_children
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=group&post_type=landingpage
- > Warning in wp-content/plugins/landing-page-rockstar/metabox/init.php+810
count(): Parameter must be an array or an object that implements Countable
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=group&post_type=landingpage
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=group&post_type=landingpage
- > Notice in wp-content/plugins/landing-page-rockstar/class/admin.php+771
Undefined index: post_type
- > GET request to /wp-admin/post-new.php?post_type=landingpage
- > Notice in wp-content/plugins/landing-page-rockstar/metabox/helpers/cmb_Meta_Box_types.php+461
Undefined variable: args
- > GET request to /wp-admin/post-new.php?post_type=landingpage
- > Notice in wp-content/plugins/landing-page-rockstar/metabox/helpers/cmb_Meta_Box_types.php+471
Undefined variable: output
SRP 0% 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
Please fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/landing-page-rockstar/single-landingpage.php
- > /wp-content/plugins/landing-page-rockstar/landertemplates/admin/landingpage001.php
- > /wp-content/plugins/landing-page-rockstar/includes/simple.php
- 31× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_attachment_image_src() in wp-content/plugins/landing-page-rockstar/landertemplates/template-1_7.php:3
- > PHP Notice
Undefined variable: meta_box in wp-content/plugins/landing-page-rockstar/includes/simple.php on line 5
- > PHP Notice
Undefined variable: embedcode in wp-content/plugins/landing-page-rockstar/landertemplates/template-3_1.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_thumbnail_id() in wp-content/plugins/landing-page-rockstar/landertemplates/template-1_4.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/landing-page-rockstar/includes/simple.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/landing-page-rockstar/includes/simple.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_thumbnail_id() in wp-content/plugins/landing-page-rockstar/landertemplates/template-2_2.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/landing-page-rockstar/metabox/init.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/landing-page-rockstar/landertemplates/template-3_1.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/landing-page-rockstar/includes/metaboxes.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=group&post_type=landingpage
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: pickedThemeExt is not defined" "ReferenceError: pickedThemeExt is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/landing-page-rockstar//includes/admin_js.js?ver=0.5:106:34)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=group&post_type=landingpage
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught ReferenceError: pickedThemeExt is not defined
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: squeeze page, landing page, optin form, generate leads
landing-page-rockstar/lprockstar.php 92% from 13 tests
The entry point to "Landing Page Rockstar - BETA" version 0.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("landing-page-rockstar.php" instead of "lprockstar.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 detected7,571 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 1,601 | 1,259 | 3,867 |
JavaScript | 6 | 352 | 379 | 2,268 |
CSS | 19 | 515 | 339 | 1,436 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 50.18 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 184 | |
▷ Static methods | 34 | 18.48% |
▷ Public methods | 178 | 96.74% |
▷ Protected methods | 2 | 1.09% |
▷ Private methods | 4 | 2.17% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
44 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
landertemplates/images/theme_1_1.png | 1.04KB | 0.19KB | ▼ 81.34% |
landertemplates/images/title-side-right3.png | 6.91KB | 4.03KB | ▼ 41.67% |
metabox/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
landertemplates/images/theme_2_2.png | 1.13KB | 0.16KB | ▼ 86.11% |
landertemplates/images/title-side-right4.png | 6.85KB | 4.03KB | ▼ 41.20% |