Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.44ms] Passed 4 tests
Server-side resources used by WordPress Tools and feeds for Truth Social (TruthSocial) media and Twitter Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 36.73 ▼2.92 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.82 ▼2.97 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 49.09 ▲0.32 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 93.30 ▲1.85 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.91 ▼0.20 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 68 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
bill_show_warnings |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WordPress Tools and feeds for Truth Social (TruthSocial) media and Twitter Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲201 | 14.04 ▲0.15 | 33.88 ▲32.23 | 39.77 ▼6.58 |
Dashboard /wp-admin | 2,229 ▲49 | 5.65 ▲0.00 | 93.71 ▼5.91 | 43.41 ▼1.85 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.94 ▼0.07 | 39.98 ▲1.26 | 35.78 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 25.32 ▲2.19 | 599.76 ▼90.06 | 68.17 ▲14.09 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.21 ▼0.02 | 96.06 ▼11.47 | 43.28 ▲0.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- bill_show_warnings
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/toolstruthsocial/truthsocial.php
- > /wp-content/plugins/toolstruthsocial/includes/checkup/bill_class_diagnose.php
- > /wp-content/plugins/toolstruthsocial/includes/checkup/class_bill_catch_errors.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\Config' not found in wp-content/plugins/toolstruthsocial/vendor/abraham/twitteroauth/src/TwitterOAuth.php:16
- > PHP Warning
require(wp-content/plugins/toolstruthsocial/vendor/abraham/twitteroauth/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/toolstruthsocial/vendor/abraham/twitteroauth/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/toolstruthsocial/vendor/abraham/twitteroauth/tests/TwitterOAuthTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/toolstruthsocial/vendor/abraham/twitteroauth/tests/ConsumerTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/toolstruthsocial/vendor/abraham/twitteroauth/tests/AbstractSignatureMethodTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\SignatureMethod' not found in wp-content/plugins/toolstruthsocial/vendor/abraham/twitteroauth/src/HmacSha1.php:15
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\Tests\\AbstractSignatureMethodTest' not found in wp-content/plugins/toolstruthsocial/vendor/abraham/twitteroauth/tests/HmacSha1Test.php:7
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/toolstruthsocial/vendor/abraham/twitteroauth/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/toolstruthsocial/vendor/abraham/twitteroauth/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/toolstruthsocial/vendor/abraham/twitteroauth/tests/TokenTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'ToolsTruthSocialWPSettings\\Page' not found in wp-content/plugins/toolstruthsocial/settings/options/plugin_options_tabbed.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: toolstruthsocial, twitter feeds, truth social media, truth social, feeds
toolstruthsocial/truthsocial.php 92% from 13 tests
The principal PHP file in "WordPress Tools and feeds for Truth Social (TruthSocial) media and Twitter Plugin" v. 1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("toolstruthsocial.php" instead of "truthsocial.php")
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
Everything looks great! No dangerous files found in this plugin4,429 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 717 | 1,174 | 3,869 |
JavaScript | 4 | 92 | 17 | 241 |
CSS | 1 | 129 | 6 | 118 |
JSON | 2 | 0 | 0 | 92 |
Markdown | 4 | 34 | 0 | 69 |
XML | 2 | 2 | 1 | 23 |
YAML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 2 | 5.13% |
▷ Concrete classes | 37 | 94.87% |
▷ Final classes | 0 | 0.00% |
Methods | 219 | |
▷ Static methods | 11 | 5.02% |
▷ Public methods | 195 | 89.04% |
▷ Protected methods | 5 | 2.28% |
▷ Private methods | 19 | 8.68% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
Constants | 17 | |
▷ Global constants | 14 | 82.35% |
▷ Class constants | 3 | 17.65% |
▷ Public constants | 3 | 100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
settings/images/handle.png | 0.21KB | 0.20KB | ▼ 5.66% |
images/logo.png | 4.83KB | 3.07KB | ▼ 36.33% |
includes/checkup/bell.png | 1.07KB | 0.27KB | ▼ 74.45% |