Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.63ms] Passed 4 tests
Analyzing server-side resources used by CTC Social Sharing
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.86 ▼3.89 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.83 ▼0.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.90 ▼5.56 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.76 ▼19.83 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.10 ▼1.24 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
CTC Social Sharing: 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,827 ▲92 | 13.27 ▼0.99 | 5.13 ▲3.10 | 38.55 ▼12.65 |
Dashboard /wp-admin | 2,206 ▲21 | 5.91 ▲0.10 | 105.59 ▲6.13 | 39.58 ▼3.10 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.02 ▼0.02 | 37.01 ▼3.76 | 33.23 ▼8.71 |
Add New Post /wp-admin/post-new.php | 1,684 ▲142 | 22.17 ▲4.00 | 617.76 ▲3.08 | 56.91 ▼2.16 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.28 ▲0.12 | 96.07 ▼7.85 | 41.93 ▼1.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% 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 50% 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ctc-social-sharing/ctc-social-sharing.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Gutenberg Block), #2 (Block Setting), #3 (Frontend display)
ctc-social-sharing/ctc-social-sharing.php 77% from 13 tests
"CTC Social Sharing" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.7.2" instead of "6.1")
- Git Repository: An alternative Git repository was detected
- Requires PHP: The required version number must match the one declared in readme.txt ("7.4.9" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin17,376 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 16,072 |
Sass | 2 | 281 | 0 | 1,146 |
JavaScript | 4 | 74 | 76 | 141 |
PHP | 2 | 6 | 21 | 15 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.26MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 112.29KB | 27.38KB | ▼ 75.62% |
screenshot-2.png | 131.89KB | 30.51KB | ▼ 76.86% |
screenshot-3.png | 21.40KB | 6.01KB | ▼ 71.91% |