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 gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.72ms] Passed 4 tests
Analyzing server-side resources used by Latest Tweets Obvs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.61 ▼10.76 |
Dashboard /wp-admin | 3.42 ▲0.12 | 48.14 ▲0.58 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 49.90 ▼1.14 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 95.36 ▲0.43 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.90 ▲1.42 |
Latest Tweets Obvs /wp-admin/options-general.php?page=latest-tweets-obvs-settings | 3.32 | 32.05 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Latest Tweets Obvs
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.45 ▼0.36 | 2.31 ▲0.25 | 37.99 ▼0.56 |
Dashboard /wp-admin | 2,210 ▲19 | 5.87 ▲0.97 | 108.48 ▼2.41 | 42.97 ▲1.46 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.04 ▼0.01 | 40.85 ▼2.95 | 37.93 ▲0.26 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.21 ▲0.17 | 602.55 ▼74.66 | 50.74 ▼1.62 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.26 ▲0.06 | 102.14 ▼4.47 | 42.96 ▼0.28 |
Latest Tweets Obvs /wp-admin/options-general.php?page=latest-tweets-obvs-settings | 1,108 | 2.04 | 34.20 | 38.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require(wp-content/plugins/latest-tweets-obvs/public/vendor/twitteroauth/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/latest-tweets-obvs/public/vendor/twitteroauth/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\SignatureMethod' not found in wp-content/plugins/latest-tweets-obvs/public/vendor/twitteroauth/src/HmacSha1.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/latest-tweets-obvs/admin/partials/latest-tweets-obvs-admin-page-settings.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/latest-tweets-obvs/public/vendor/twitteroauth/tests/TwitterOAuthTest.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/latest-tweets-obvs/admin/partials/latest-tweets-obvs-admin-field-text.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/latest-tweets-obvs/public/partials/latest-tweets-obvs-public-display.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/latest-tweets-obvs/admin/partials/latest-tweets-obvs-admin-section-account.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/latest-tweets-obvs/public/vendor/twitteroauth/tests/TokenTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/latest-tweets-obvs/public/vendor/twitteroauth/tests/Util/JsonDecoderTest.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/latest-tweets-obvs/admin/partials/latest-tweets-obvs-admin-section-api.php:14
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== latest-tweets-obvs ===
)
latest-tweets-obvs/latest-tweets-obvs.php Passed 13 tests
The main PHP file in "Latest Tweets Obvs" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
100 characters long description:
Latest Tweets Obvs is a simple plugin that displays, well, latest tweets (obvs) via the Twitter API.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,322 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 488 | 1,254 | 1,690 |
PO File | 11 | 286 | 319 | 1,236 |
Sass | 9 | 42 | 16 | 165 |
CSS | 4 | 3 | 9 | 87 |
JSON | 3 | 0 | 0 | 76 |
Markdown | 2 | 7 | 0 | 25 |
XML | 2 | 2 | 1 | 23 |
JavaScript | 1 | 2 | 2 | 20 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 2 | 8.33% |
▷ Concrete classes | 22 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 143 | |
▷ Static methods | 9 | 6.29% |
▷ Public methods | 121 | 84.62% |
▷ Protected methods | 5 | 3.50% |
▷ Private methods | 17 | 11.89% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 13 | |
▷ Global constants | 9 | 69.23% |
▷ Class constants | 4 | 30.77% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin