Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/jamie-social-icons/inc/showpost.php+2
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.96MB] [CPU: ▼49.09ms] Passed 4 tests
An overview of server-side resources used by Jamie Social Icons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.78 ▼35.18 |
Dashboard /wp-admin | 2.05 ▼1.26 | 7.46 ▼39.67 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.67 ▼38.31 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.22 ▼83.21 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.07 ▼26.61 |
Social Settings /wp-admin/options-general.php?page=jamie-social-icons/social-admin.php | 2.05 | 6.53 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Jamie Social Icons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲243 | 19.08 ▲4.52 | 24.49 ▲22.46 | 37.02 ▼13.40 |
Dashboard /wp-admin | 2,273 ▲85 | 7.91 ▲2.01 | 165.82 ▲53.00 | 38.45 ▼4.65 |
Posts /wp-admin/edit.php | 2,178 ▲89 | 5.48 ▲3.46 | 98.87 ▲62.62 | 59.11 ▲26.27 |
Add New Post /wp-admin/post-new.php | 6,596 ▲5,063 | 27.72 ▲4.49 | 1,059.28 ▲386.93 | 37.65 ▼26.03 |
Media Library /wp-admin/upload.php | 1,469 ▲81 | 7.11 ▲2.83 | 164.73 ▲50.64 | 45.11 ▼2.91 |
Social Settings /wp-admin/options-general.php?page=jamie-social-icons/social-admin.php | 1,653 | 8.48 | 194.75 | 68.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/jamie-social-icons/inc/showpost.php+2
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 0% 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
- 46 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jamie-social-icons/social-admin.php
- > Notice in wp-content/plugins/jamie-social-icons/jamie-social_icons.php+156
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=jamie-social-icons/social-admin.php
- > 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.)
- > GET request to /wp-admin/options-general.php?page=jamie-social-icons/social-admin.php
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=jamie-social-icons/social-admin.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/jamie-social-icons/admin/jamiesocial_analytics.php
- 32× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/jamie-social-icons/jamie-social_icons.php:39
- > PHP Notice
Undefined variable: options in wp-content/plugins/jamie-social-icons/admin/jamiesocial_icontext.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/jamie-social-icons/locale/locale.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jamie-social-icons/social-admin.php:2
- > PHP Notice
Undefined variable: options in wp-content/plugins/jamie-social-icons/admin/jamiesocial_icontext.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/jamie-social-icons/admin/jamiesocial_icontext.php on line 1
- > PHP Notice
Undefined variable: options in wp-content/plugins/jamie-social-icons/inc/showpost.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/jamie-social-icons/admin/jamiesocial_insights.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/jamie-social-icons/admin/jamiesocial_posttype.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/jamie-social-icons/inc/showpage.php on line 13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=jamie-social-icons/social-admin.php
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== jamie-social-icons ===
) - Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png)
jamie-social-icons/jamie-social_icons.php 85% from 13 tests
Analyzing the main PHP file in "Jamie Social Icons" version 0.9.8.3
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("jamie-social-icons.php" instead of "jamie-social_icons.php")
- Description: The description should be shorter than 140 characters (currently 151 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin753 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 48 | 184 | 574 |
JavaScript | 4 | 18 | 68 | 102 |
CSS | 2 | 1 | 2 | 77 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
8 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
share-balloon.png | 3.31KB | 0.87KB | ▼ 73.63% |
screenshot-3.png | 55.75KB | 21.58KB | ▼ 61.29% |
inc/images/share-balloon.png | 3.31KB | 0.87KB | ▼ 73.63% |
screenshot-5.png | 12.38KB | 5.64KB | ▼ 54.46% |
screenshot-4.png | 34.69KB | 14.38KB | ▼ 58.55% |