Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.66MB] [CPU: ▼4.88ms] Passed 4 tests
A check of server-side resources used by Social Media by Lazy Cat Themes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.59 | 33.74 ▼11.71 |
Dashboard /wp-admin | 4.00 ▲0.65 | 62.82 ▼4.25 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 57.81 ▲8.50 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.69 | 91.54 ▼12.07 |
Media Library /wp-admin/upload.php | 3.93 ▲0.69 | 45.00 ▲9.41 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 4.07 | 37.92 |
Server storage [IO: ▲1.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 66 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_lct_social_media_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Social Media by Lazy Cat Themes: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲63 | 14.76 ▲0.57 | 2.08 ▲0.03 | 45.32 ▲1.98 |
Dashboard /wp-admin | 2,225 ▲48 | 5.59 ▼0.08 | 85.72 ▼11.23 | 45.70 ▲5.62 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.19 ▲0.18 | 42.82 ▲2.35 | 41.12 ▲3.22 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.25 ▲0.04 | 688.73 ▲73.86 | 55.05 ▼11.51 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.20 ▼0.03 | 99.28 ▼7.75 | 49.10 ▲3.07 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 971 | 2.05 | 25.98 | 29.97 |
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
The following items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'LCT_Social_Media' does not have a method 'remove_transient_option'
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/social-media-by-lazy-cat-themes/lct-social-media.php
- 34× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant LCT_SOCIAL_MEDIA_WIDGETS_DIR - assumed 'LCT_SOCIAL_MEDIA_WIDGETS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-media-by-lazy-cat-themes/lib/widgets/class-lct-widget-loader.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/social-media-by-lazy-cat-themes/lib/vendor/twitteroauth/tests/TokenTest.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-by-lazy-cat-themes/lib/socialstats/class-lct-follower-counter.php:10
- > PHP Warning
require_once(LCT_SOCIAL_MEDIA_WIDGETS_DIRclass-lct-social-media-widget.php): failed to open stream: No such file or directory in wp-content/plugins/social-media-by-lazy-cat-themes/lib/widgets/class-lct-widget-loader.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\Config' not found in wp-content/plugins/social-media-by-lazy-cat-themes/lib/vendor/twitteroauth/src/TwitterOAuth.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-by-lazy-cat-themes/lib/class-lct-social-media-requires.php:9
- > PHP Fatal error
Uncaught Error: Class 'LCT_Social_Stat' not found in wp-content/plugins/social-media-by-lazy-cat-themes/lib/socialstats/networks/class-lct-youtube-social-stat.php:9
- > PHP Fatal error
Uncaught Error: Class 'LCT_Social_Stat' not found in wp-content/plugins/social-media-by-lazy-cat-themes/lib/socialstats/networks/class-lct-google-plus-social-stat.php:9
- > PHP Fatal error
Uncaught Error: Class 'LCT_Social_Stat' not found in wp-content/plugins/social-media-by-lazy-cat-themes/lib/socialstats/networks/class-lct-pinterest-social-stat.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-by-lazy-cat-themes/lib/class-lct-schema-organization.php:10
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== social-media-by-lazy-cat-themes ===
)
social-media-by-lazy-cat-themes/lct-social-media.php 77% from 13 tests
The principal PHP file in "Social Media by Lazy Cat Themes" v. 1.1.7 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 230 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("social-media-by-lazy-cat-themes.php" instead of "lct-social-media.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 detected6,973 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 1,067 | 2,967 | 4,041 |
CSS | 3 | 13 | 13 | 2,145 |
SVG | 1 | 0 | 0 | 655 |
JavaScript | 2 | 20 | 10 | 46 |
JSON | 1 | 0 | 0 | 34 |
Markdown | 2 | 7 | 0 | 25 |
YAML | 1 | 0 | 0 | 17 |
XML | 1 | 1 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 3 | 6.52% |
▷ Concrete classes | 43 | 93.48% |
▷ Final classes | 0 | 0.00% |
Methods | 305 | |
▷ Static methods | 59 | 19.34% |
▷ Public methods | 242 | 79.34% |
▷ Protected methods | 32 | 10.49% |
▷ Private methods | 31 | 10.16% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 35 | |
▷ Global constants | 27 | 77.14% |
▷ Class constants | 8 | 22.86% |
▷ Public constants | 8 | 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
No PNG files were detected