Benchmarks
Plugin footprint 65% from 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.70MB] [CPU: ▼47.55ms] Passed 4 tests
Server-side resources used by Sherk Skills Landing Pages Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.17 | 9.34 ▼38.28 |
Dashboard /wp-admin | 2.31 ▼1.00 | 11.07 ▼38.22 |
Posts /wp-admin/edit.php | 2.31 ▼1.05 | 11.45 ▼33.69 |
Add New Post /wp-admin/post-new.php | 2.31 ▼3.58 | 10.01 ▼80.01 |
Media Library /wp-admin/upload.php | 2.31 ▼0.92 | 11.06 ▼20.80 |
How To Use /wp-admin/edit.php?post_type=sherk_skills&page=sherkskills_info | 2.31 | 10.78 |
Add New /wp-admin/post-new.php?post_type=sherk_skills | 2.31 | 10.61 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=sherk_skills | 2.31 | 11.02 |
Skills Category /wp-admin/edit-tags.php?taxonomy=sherk_skills_cat&post_type=sherk_skills | 2.31 | 11.45 |
Sherk Skills /wp-admin/edit.php?post_type=sherk_skills | 2.31 | 11.23 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_sherk_skills_widget_id |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Sherk Skills Landing Pages Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲195 | 14.02 ▼0.35 | 7.21 ▲4.98 | 43.01 ▼5.39 |
Dashboard /wp-admin | 2,242 ▲51 | 5.83 ▲0.89 | 99.89 ▼15.51 | 39.12 ▼4.71 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.00 ▼0.05 | 39.13 ▲0.54 | 35.40 ▲3.44 |
Add New Post /wp-admin/post-new.php | 1,568 ▲54 | 23.43 ▼0.24 | 645.57 ▼20.74 | 59.62 ▲4.63 |
Media Library /wp-admin/upload.php | 1,430 ▲45 | 4.33 ▲0.05 | 94.84 ▼6.10 | 40.44 ▼2.21 |
How To Use /wp-admin/edit.php?post_type=sherk_skills&page=sherkskills_info | 1,191 | 2.20 | 28.65 | 40.35 |
Add New /wp-admin/post-new.php?post_type=sherk_skills | 2,584 | 7.97 | 194.53 | 69.91 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=sherk_skills | 1,346 | 2.14 | 38.53 | 36.63 |
Skills Category /wp-admin/edit-tags.php?taxonomy=sherk_skills_cat&post_type=sherk_skills | 1,298 | 2.14 | 27.23 | 26.62 |
Sherk Skills /wp-admin/edit.php?post_type=sherk_skills | 1,117 | 1.95 | 29.74 | 29.76 |
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
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in SherkSkillsWidget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_sherk_skills_widget_id
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sherk_skills
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in SherkSkillsWidget is deprecated since version 4.3.0! Use __construct() instead.
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sherk_skills
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sherk_skills
- > Notice in wp-content/plugins/sherk-skills-landing-pages/includes/SherkSkillsCssJsScripts.php+59
Trying to get property 'post_type' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=sherk_skills
- > Notice in wp-content/plugins/sherk-skills-landing-pages/includes/SherkSkillsMetaBox.php+139
Trying to get property 'ID' of non-object
- > GET request to /wp-admin/post-new.php?post_type=sherk_skills
- > Warning in wp-content/plugins/sherk-skills-landing-pages/includes/SherkSkillsMetaBox.php+30
Illegal string offset '_sherk_skills_meta_websites'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=sherk_skills
- > Notice in wp-content/plugins/sherk-skills-landing-pages/includes/SherkSkillsMetaBox.php+68
Array to string conversion
- > GET request to /wp-admin/post-new.php?post_type=sherk_skills
- > Warning in wp-content/plugins/sherk-skills-landing-pages/includes/SherkSkillsMetaBox.php+68
Illegal string offset '_sherk_skills_meta_videos'
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
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sherk-skills-landing-pages/includes/SherkSkillsCssJsScripts.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sherk-skills-landing-pages/includes/SherkSkillsWidget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sherk-skills-landing-pages/includes/SherkSkillsMenu.php:9
- > PHP Fatal error
Uncaught Error: Class 'SherkSkills' not found in wp-content/plugins/sherk-skills-landing-pages/templates/sherkskills_dashboard.php:86
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sherk-skills-landing-pages/includes/CPT_SherkSkills.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sherk-skills-landing-pages/includes/SherkSkillsHelper.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sherk-skills-landing-pages/includes/SherkSkillsShortcode.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/sherk-skills-landing-pages/templates/single-sherk_skills-content.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sherk-skills-landing-pages/includes/SherkSkillsMetaBox.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sherk-skills-landing-pages/includes/SherkSkillsHelper.php:9
- > 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)
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=sherk_skills
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=sherk_skills 0:0 Uncaught SyntaxError: Unexpected end of JSON input
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Screenshot #8 (Added shortcode functionality to display a carousel of skills. ex. **[sherkskills title="These are my Skills"]**) image required
sherk-skills-landing-pages/sherk_skills.php 92% from 13 tests
The main PHP file in "Sherk Skills Landing Pages Plugin" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("sherk-skills-landing-pages.php" instead of "sherk_skills.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,913 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 103 | 470 | 995 |
PHP | 10 | 227 | 94 | 641 |
CSS | 2 | 48 | 22 | 220 |
Markdown | 1 | 33 | 0 | 57 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.17MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/glyphicons.png | 108.59KB | 52.69KB | ▼ 51.48% |
assets/img/glyphicons-halflings.png | 13.50KB | 10.35KB | ▼ 23.34% |
assets/images/logo.png | 49.81KB | 14.78KB | ▼ 70.33% |
assets/css/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
assets/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |