Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/wpsocialstats/classes/social_stats_table.php+66
Declaration of Social_Stats_Table::get_sortable_columns($is_sortable) should be compatible with WP_List_Table::get_sortable_columns()
Server metrics [RAM: ▼1.96MB] [CPU: ▼56.21ms] Passed 4 tests
A check of server-side resources used by Social Media Stats
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.67 ▼41.34 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.48 ▼46.17 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.13 ▼47.66 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.25 ▼89.67 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.78 ▼37.67 |
Settings /wp-admin/admin.php?page=auto-update-state-options | 2.05 | 5.43 |
Dashboard /wp-admin/admin.php?page=wp_social_stats_main | 2.05 | 6.46 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 11 new options
New WordPress options |
---|
wp_social_stats_show_per_page |
widget_most-shared-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
wp_social_stats_show_date |
wp_social_stats_show |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Social Media Stats
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲109 | 13.27 ▼1.11 | 1.98 ▲0.09 | 42.75 ▼0.20 |
Dashboard /wp-admin | 2,237 ▲46 | 5.85 ▲0.98 | 105.86 ▼2.76 | 82.96 ▲41.39 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 1.98 ▼0.03 | 37.49 ▼2.74 | 33.61 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.10 ▼0.13 | 664.95 ▼33.53 | 48.84 ▼9.29 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.15 ▼0.08 | 103.83 ▼3.93 | 75.05 ▲29.31 |
Settings /wp-admin/admin.php?page=auto-update-state-options | 845 | 2.25 | 33.35 | 29.15 |
Dashboard /wp-admin/admin.php?page=wp_social_stats_main | 1,230 | 3.44 | 84.36 | 48.44 |
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
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/wpsocialstats/classes/social_stats_table.php+66
Declaration of Social_Stats_Table::get_sortable_columns($is_sortable) should be compatible with WP_List_Table::get_sortable_columns()
- Zombie WordPress options were found after uninstall: 11 options
- wp_social_stats_show_date
- wp_social_stats_show_per_page
- wp_social_stats_show
- widget_most-shared-posts
- wp_social_stats_cat_id
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp_social_stats_main
- > Warning in wp-content/plugins/wpsocialstats/classes/social_stats_table.php+66
Declaration of Social_Stats_Table::get_sortable_columns($is_sortable) should be compatible with WP_List_Table::get_sortable_columns()
- > GET request to /wp-admin/admin.php?page=wp_social_stats_main
- > Notice in wp-content/plugins/wpsocialstats/classes/social_stats_table.php+576
Undefined variable: paged
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 20× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wpsocialstats/templates/admin-page.php on line 17
- > PHP Notice
Undefined variable: options in wp-content/plugins/wpsocialstats/templates/admin-page.php on line 29
- > PHP Notice
Undefined variable: category_dropdown in wp-content/plugins/wpsocialstats/templates/admin-page.php on line 20
- > PHP Warning
Use of undefined constant SOCIAL_STATISTICS_PLUGIN_URL - assumed 'SOCIAL_STATISTICS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpsocialstats/templates/social-media-tips-page.php on line 4
- > PHP Notice
Undefined variable: options in wp-content/plugins/wpsocialstats/templates/admin-page.php on line 28
- > PHP Notice
Undefined variable: options in wp-content/plugins/wpsocialstats/templates/admin-page.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpsocialstats/wp-social-stats.php:25
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wpsocialstats/templates/admin-page.php on line 28
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wpsocialstats/templates/admin-page.php on line 29
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wpsocialstats/templates/social-media-tips-page.php:6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: social media analytics, social media metrics, social media, social media stats
wpsocialstats/wp-social-stats.php 85% from 13 tests
The main PHP script in "Social Media Stats" version 2.0.7 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpsocialstats.php" instead of "wp-social-stats.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
There were no executable files found in this plugin1,906 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 517 | 223 | 1,289 |
JavaScript | 3 | 134 | 17 | 342 |
CSS | 2 | 25 | 0 | 275 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 55.67 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 8 | 38.10% |
▷ Class constants | 13 | 61.90% |
▷ Public constants | 13 | 100.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
12 PNG files occupy 0.31MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 25.61KB | 9.40KB | ▼ 63.32% |
images/up-arrow.png | 0.26KB | 0.19KB | ▼ 25.76% |
screenshot-4.png | 57.76KB | 20.49KB | ▼ 64.53% |
icon/logo.png | 1.30KB | 1.09KB | ▼ 16.20% |
images/down-arrow.png | 0.27KB | 0.19KB | ▼ 28.83% |