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
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/cackle-social-login/cackle-social-login.php+35
Methods with the same name as their class will not be constructors in a future version of PHP; CackleSocialLogin has a deprecated constructor
Server metrics [RAM: ▼1.25MB] [CPU: ▼50.21ms] Passed 4 tests
An overview of server-side resources used by Cackle Social Login
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.74 | 13.81 ▼36.69 |
Dashboard /wp-admin | 2.76 ▼0.54 | 17.79 ▼33.76 |
Posts /wp-admin/edit.php | 2.77 ▼0.59 | 15.30 ▼44.20 |
Add New Post /wp-admin/post-new.php | 2.76 ▼3.12 | 15.24 ▼86.20 |
Media Library /wp-admin/upload.php | 2.77 ▼0.46 | 16.44 ▼24.69 |
Cackle Social Login /wp-admin/plugins.php?page=cackle-social-login | 2.77 | 13.53 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Cackle Social Login
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.41 ▲0.10 | 1.75 ▼0.12 | 47.19 ▲5.43 |
Dashboard /wp-admin | 2,213 ▲25 | 5.90 ▲0.09 | 101.51 ▼3.82 | 41.44 ▼0.20 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.99 ▼0.03 | 35.82 ▼4.67 | 35.09 ▼2.77 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.18 ▲0.09 | 669.37 ▼32.36 | 62.45 ▲4.88 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.31 ▲0.06 | 107.94 ▼8.04 | 44.22 ▼4.96 |
Cackle Social Login /wp-admin/plugins.php?page=cackle-social-login | 843 | 2.04 | 27.14 | 30.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/cackle-social-login/cackle-social-login.php+40
Use of undefined constant cackle_social_login_login_form - assumed 'cackle_social_login_login_form' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=cackle-social-login
- > Warning in wp-content/plugins/cackle-social-login/cackle-social-login.php+41
Use of undefined constant cackle_social_login_login_form - assumed 'cackle_social_login_login_form' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/plugins.php?page=cackle-social-login
- > Warning in wp-content/plugins/cackle-social-login/cackle-social-login.php+42
Use of undefined constant cackle_social_login_parse_request - assumed 'cackle_social_login_parse_request' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/plugins.php?page=cackle-social-login
- > Warning in wp-content/plugins/cackle-social-login/cackle-social-login.php+43
Use of undefined constant cackle_get_avatar - assumed 'cackle_get_avatar' (this will throw an Error in a future version of PHP)
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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cackle-social-login/cackle-social-login.php:339
- > PHP Warning
Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/cackle-social-login/cackle-social-login.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function cackle_social_login_i() in wp-content/plugins/cackle-social-login/manage.php:45
- > PHP Warning
Use of undefined constant PLUGINDIR - assumed 'PLUGINDIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cackle-social-login/cackle-social-login.php on line 16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Login form), #2 (Settings in Cackle admin panel)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== cackle-social-login ===
)
cackle-social-login/cackle-social-login.php Passed 13 tests
"Cackle Social Login" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
19 characters long description:
Cackle Social Login
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 plugin354 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 68 | 14 | 323 |
CSS | 1 | 3 | 0 | 31 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 20.50KB | 9.27KB | ▼ 54.79% |