Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.29MB] [CPU: ▼2.00ms] Passed 4 tests
A check of server-side resources used by Twitter posts to Blog
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.47 | 42.96 ▲2.10 |
Dashboard /wp-admin | 3.67 ▲0.33 | 50.42 ▲1.80 |
Posts /wp-admin/edit.php | 3.71 ▲0.32 | 53.23 ▲1.82 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.26 | 102.42 ▼13.72 |
Media Library /wp-admin/upload.php | 3.52 ▲0.26 | 41.16 ▲6.81 |
Twitter To WP /wp-admin/admin.php?page=dg_tw_admin_menu | 3.71 | 34.76 |
Manual Posting /wp-admin/admin.php?page=dg_tw_retrieve_menu | 3.51 | 32.82 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: no files
Database: no new tables, 9 new options
New WordPress options |
---|
dg_tw_publish |
dg_tw_ft |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
dg_tw_time |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Twitter posts to Blog
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 13.39 ▼1.16 | 1.68 ▲0.09 | 41.00 ▼7.39 |
Dashboard /wp-admin | 2,254 ▲66 | 5.90 ▲1.01 | 107.51 ▼3.65 | 41.07 ▼0.22 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.07 ▲0.09 | 40.80 ▲0.14 | 34.75 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,557 ▲24 | 23.35 ▼0.05 | 681.37 ▲22.34 | 48.76 ▼8.63 |
Media Library /wp-admin/upload.php | 1,439 ▲48 | 4.25 ▲0.05 | 99.05 ▼6.87 | 42.22 ▼1.66 |
Twitter To WP /wp-admin/admin.php?page=dg_tw_admin_menu | 2,195 | 1.92 | 28.90 | 29.95 |
Manual Posting /wp-admin/admin.php?page=dg_tw_retrieve_menu | 713 | 1.62 | 7.85 | 21.80 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- dg_tw_ft
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- dg_tw_time
- dg_tw_publish
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=dg_tw_admin_menu
- > Warning in wp-content/plugins/twitter-posts-to-blog/admin_page.php+4
Use of undefined constant KNEWS_URL - assumed 'KNEWS_URL' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=dg_tw_admin_menu
- > Notice in wp-content/plugins/twitter-posts-to-blog/admin_page.php+306
Undefined index: access_key
- > GET request to /wp-admin/admin.php?page=dg_tw_admin_menu
- > Notice in wp-content/plugins/twitter-posts-to-blog/admin_page.php+308
Undefined index: access_secret
- > GET request to /wp-admin/admin.php?page=dg_tw_admin_menu
- > Notice in wp-content/plugins/twitter-posts-to-blog/admin_page.php+310
Undefined index: access_token
- > GET request to /wp-admin/admin.php?page=dg_tw_admin_menu
- > Notice in wp-content/plugins/twitter-posts-to-blog/admin_page.php+312
Undefined index: access_token_secret
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
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant KNEWS_URL - assumed 'KNEWS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/twitter-posts-to-blog/admin_page.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/twitter-posts-to-blog/retrieve_page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/twitter-posts-to-blog/admin_page.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: autopost, twitter
twitter-posts-to-blog/twitter-posts-to-blog.php Passed 13 tests
The main PHP script in "Twitter posts to Blog" version 1.11.25 is automatically included on every request by WordPress
24 characters long description:
Post twetts to your blog
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,353 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 427 | 403 | 1,777 |
PO File | 2 | 238 | 238 | 517 |
JavaScript | 1 | 13 | 0 | 49 |
CSS | 2 | 1 | 5 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 7.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 10 | 13.16% |
▷ Public methods | 65 | 85.53% |
▷ Protected methods | 2 | 2.63% |
▷ Private methods | 9 | 11.84% |
Functions | 26 | |
▷ Named functions | 26 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/balloon-twitter-left.png | 1.90KB | 1.13KB | ▼ 40.72% |