Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.46ms] Passed 4 tests
Analyzing server-side resources used by Social Commerce by CedCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.28 ▼3.92 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.09 ▼15.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.73 ▼0.51 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.97 ▼10.06 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.60 ▼0.12 |
Server storage [IO: ▲1.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Commerce by CedCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.25 ▼0.52 | 1.69 ▼0.03 | 43.65 ▲2.06 |
Dashboard /wp-admin | 2,198 ▲21 | 5.54 ▼0.11 | 83.54 ▼7.77 | 39.31 ▼4.61 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.03 | 33.62 ▼2.59 | 33.48 ▼4.41 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.72 ▲0.51 | 678.82 ▲3.27 | 63.49 ▲12.48 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.23 ▲0.03 | 97.00 ▼0.14 | 45.69 ▲2.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/social-commerce-by-cedcommerce/public/partials/facebook-marketplace-connector-for-woocommerce-public-display.php
- > /wp-content/plugins/social-commerce-by-cedcommerce/admin/partials/facebook-marketplace-connector-for-woocommerce-admin-display.php
- > /wp-content/plugins/social-commerce-by-cedcommerce/admin/lib/jwt/vendor/firebase/php-jwt/tests/bootstrap.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require(): Failed opening required 'CED_FMCW_DIRPATH/admin/lib/jwt/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/social-commerce-by-cedcommerce/admin/lib/jwt/decode-jwt-token.php on line 2
- > PHP Notice
Undefined variable: page_id in wp-content/plugins/social-commerce-by-cedcommerce/admin/partials/single-feed-view.php on line 10
- > PHP Fatal error
Uncaught Firebase\\JWT\\ExpiredException: Expired token in wp-content/plugins/social-commerce-by-cedcommerce/admin/lib/jwt/vendor/firebase/php-jwt/src/JWT.php:134
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_attribute_taxonomies() in wp-content/plugins/social-commerce-by-cedcommerce/admin/partials/settings-view.php:2
- > PHP Warning
Use of undefined constant CED_FMCW_DIRPATH - assumed 'CED_FMCW_DIRPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-commerce-by-cedcommerce/admin/lib/jwt/decode-jwt-token.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/social-commerce-by-cedcommerce/admin/lib/jwt/vendor/firebase/php-jwt/tests/JWTTest.php:7
- > PHP Warning
require(CED_FMCW_DIRPATH/admin/lib/jwt/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/social-commerce-by-cedcommerce/admin/lib/jwt/decode-jwt-token.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
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
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
social-commerce-by-cedcommerce/social-commerce-by-cedcommerce.php 77% from 13 tests
This is the main PHP file of "Social Commerce by CedCommerce" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 187 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
- Git Repository: Please do not include Git repositories in your plugin
Code Analysis 97% from 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 plugin13,808 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 936 | 1,761 | 6,396 |
JSON | 5 | 0 | 0 | 5,684 |
CSS | 2 | 7 | 18 | 964 |
JavaScript | 2 | 45 | 83 | 518 |
Markdown | 2 | 44 | 0 | 182 |
Bourne Shell | 1 | 2 | 4 | 31 |
XML | 1 | 1 | 0 | 18 |
YAML | 1 | 4 | 0 | 15 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 168)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 39.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 577.00 |
Average method complexity | 5.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 168.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 204 | |
▷ Static methods | 19 | 9.31% |
▷ Public methods | 195 | 95.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 4.41% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/fbmp.png | 16.17KB | 6.55KB | ▼ 59.48% |
admin/images/ced-logo.png | 0.93KB | 0.87KB | ▼ 6.90% |
admin/images/icon.png | 9.15KB | 0.80KB | ▼ 91.21% |