Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/ct-social/ct-social.php+334
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼52.35ms] Passed 4 tests
Analyzing server-side resources used by CT Social
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.54 ▼32.04 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.35 ▼52.52 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.33 ▼41.65 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.33 ▼83.19 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.20 ▼28.57 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 87 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_ct_social |
Browser metrics Passed 4 tests
A check of browser resources used by CT Social
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲136 | 13.37 ▼0.97 | 8.46 ▲6.77 | 42.99 ▲3.89 |
Dashboard /wp-admin | 2,195 ▲20 | 5.64 ▼0.03 | 98.12 ▼3.16 | 42.20 ▲2.95 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▼0.01 | 33.97 ▼3.24 | 36.88 ▲3.05 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.23 ▲0.19 | 668.53 ▼49.98 | 57.20 ▼15.20 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.20 ▲0.01 | 104.25 ▼0.09 | 44.85 ▼1.45 |
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
- > Deprecated in wp-content/plugins/ct-social/ct-social.php+334
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_ct_social
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× 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/ct-social/ct-social.php:18
- > 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 errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI ("")
ct-social/ct-social.php Passed 13 tests
The entry point to "CT Social" version 1.0.0 is a PHP file that has certain tags in its header comment area
30 characters long description:
A simple social profile widget
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin348 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 17 | 302 |
PO File | 1 | 10 | 9 | 34 |
CSS | 1 | 4 | 12 | 6 |
JavaScript | 1 | 1 | 8 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 63.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 16.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
81 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/24px/digg.png | 2.56KB | 1.45KB | ▼ 43.17% |
assets/images/16px/instagram.png | 1.53KB | 0.69KB | ▼ 54.85% |
assets/images/16px/skype.png | 0.78KB | 0.80KB | 0.00% |
assets/images/24px/pinterest.png | 1.96KB | 1.16KB | ▼ 41.07% |
assets/images/16px/flickr.png | 0.59KB | 0.50KB | ▼ 14.00% |