Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼3.09ms] Passed 4 tests
Analyzing server-side resources used by Barebones Twitter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.59 ▼1.44 |
Dashboard /wp-admin | 3.45 ▲0.15 | 50.65 ▼4.93 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.03 ▲1.80 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 88.81 ▼7.78 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 39.46 ▲1.97 |
Barebones Twitter /wp-admin/options-general.php?page=barebones-twitter | 3.34 | 34.10 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Barebones Twitter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲142 | 13.83 ▼0.80 | 10.05 ▲8.20 | 43.88 ▲0.06 |
Dashboard /wp-admin | 2,203 ▲26 | 5.55 ▲0.02 | 92.74 ▼8.43 | 40.33 ▼2.30 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.02 ▲0.05 | 39.22 ▲3.23 | 35.14 ▲2.56 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.30 ▼0.30 | 652.67 ▼81.28 | 65.13 ▲5.55 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.20 ▲0.08 | 94.56 ▼13.21 | 44.36 ▼0.79 |
Barebones Twitter /wp-admin/options-general.php?page=barebones-twitter | 914 | 2.12 | 22.80 | 30.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=barebones-twitter
- > Warning in wp-admin/includes/template.php+1771
call_user_func() expects parameter 1 to be a valid callback, class 'Barebones_Twitter_Admin' does not have a method 'barebones_twitter_access_cb'
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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/barebones-twitter/public/partials/barebones-twitter-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/barebones-twitter/admin/partials/barebones-twitter-admin-display.php:19
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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:
- Screenshots: Please add images for these screenshots: #1 (This is the settings menu), #2 (Tweets being displayed on the front end (non scroll))
- Plugin Name: Please specify the plugin name on the first line (
=== barebones-twitter ===
)
barebones-twitter/barebones-twitter.php Passed 13 tests
"Barebones Twitter" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
Easily add a barebones Twitter widget to your Wordpress website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin630 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 196 | 743 | 612 |
JavaScript | 2 | 6 | 30 | 18 |
CSS | 2 | 0 | 8 | 0 |
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.20 |
Average class complexity | 6.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 2 | 4.08% |
▷ Public methods | 41 | 83.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 16.33% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin