Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.58ms] Passed 4 tests
Analyzing server-side resources used by WCSociality
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.48 ▼3.92 |
Dashboard /wp-admin | 3.32 ▼0.02 | 48.13 ▼14.92 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 50.07 ▼0.54 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.71 ▼14.94 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.01 ▲3.03 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
wcs__settings |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WCSociality
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲145 | 13.56 ▼0.82 | 7.95 ▲5.97 | 42.37 ▼2.33 |
Dashboard /wp-admin | 2,234 ▲57 | 5.83 ▲0.02 | 92.57 ▲5.11 | 41.89 ▼0.60 |
Posts /wp-admin/edit.php | 2,144 ▲47 | 2.28 ▲0.27 | 41.74 ▲2.30 | 36.01 ▲4.59 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.59 ▲6.12 | 608.74 ▲6.67 | 34.37 ▼20.29 |
Media Library /wp-admin/upload.php | 1,433 ▲30 | 4.43 ▲0.00 | 104.26 ▼0.36 | 44.42 ▼0.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- wcs__settings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WCSociality' not found in wp-content/plugins/wcsociality/inc/WCS_Rating.php:3
- > PHP Notice
Undefined variable: current in wp-content/plugins/wcsociality/template/admin/liker.php on line 1
- > PHP Notice
Undefined variable: current in wp-content/plugins/wcsociality/template/admin/useful.php on line 1
- > PHP Notice
Undefined variable: liker in wp-content/plugins/wcsociality/template/liker.php on line 1
- > PHP Fatal error
Uncaught Error: Call to a member function wcs_is_disabled() on null in wp-content/plugins/wcsociality/template/liker.php:1
- > PHP Fatal error
Uncaught Error: Call to a member function wcs_is_disabled() on null in wp-content/plugins/wcsociality/template/rating.php:1
- > PHP Notice
Undefined variable: rating in wp-content/plugins/wcsociality/template/rating.php on line 1
- > PHP Notice
Undefined variable: current in wp-content/plugins/wcsociality/template/admin/rating.php on line 1
- > PHP Fatal error
Uncaught Error: Call to a member function wcs_is_disabled() on null in wp-content/plugins/wcsociality/template/useful.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wcsociality/template/admin/liker.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Rating settings on plugin settings page.), #2 (Likes settings on plugin settings page.), #3 (Useful settings on plugin settings page.)
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wcsociality ===
)
wcsociality/wcsociality.php 85% from 13 tests
The primary PHP file in "WCSociality" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 173 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,686 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 14 | 184 | 49 | 667 |
CSS | 3 | 28 | 4 | 150 |
JavaScript | 2 | 33 | 3 | 110 |
PO File | 1 | 35 | 36 | 88 |
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.18 |
Average class complexity | 3.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 2 | 40.00% |
▷ Concrete classes | 3 | 60.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 5 | 31.25% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
PNG images were not found in this plugin