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
Install script ran successfully
Server metrics [RAM: ▲1.25MB] [CPU: ▲2.76ms] Passed 4 tests
This is a short check of server-side resources used by Lastweets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.99 ▲1.53 | 55.43 ▲16.01 |
Dashboard /wp-admin | 4.84 ▲1.53 | 57.37 ▲8.33 |
Posts /wp-admin/edit.php | 4.94 ▲1.58 | 67.93 ▲22.18 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 60.79 ▼32.41 |
Media Library /wp-admin/upload.php | 4.73 ▲1.50 | 49.97 ▲19.10 |
Lastweets /wp-admin/options-general.php?page=lastweets | 4.75 | 49.11 |
Server storage [IO: ▲7.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 456 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
_lastweets_fetch_every |
widget_recent-posts |
_lastweets_load_css |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lastweets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲254 | 18.05 ▲3.65 | 1.60 ▼0.07 | 37.53 ▼3.70 |
Dashboard /wp-admin | 2,387 ▲196 | 8.62 ▲2.72 | 182.32 ▲80.93 | 45.59 ▲2.17 |
Posts /wp-admin/edit.php | 2,309 ▲217 | 5.66 ▲3.49 | 80.33 ▲34.92 | 33.79 ▼0.22 |
Add New Post /wp-admin/post-new.php | 6,230 ▲4,711 | 22.15 ▼1.03 | 1,062.53 ▲331.29 | 58.27 ▼2.59 |
Media Library /wp-admin/upload.php | 1,442 ▲54 | 7.00 ▲2.78 | 102.42 ▼9.99 | 40.19 ▼5.88 |
Lastweets /wp-admin/options-general.php?page=lastweets | 1,174 | 6.24 | 96.34 | 44.18 |
Uninstaller [IO: ▲0.00MB] [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
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- _lastweets_load_css
- _lastweets_fetch_every
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/lastweets/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- > /wp-content/plugins/lastweets/vendor/j7mbo/twitter-api-php/index.php
- 113× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/lastweets/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Type_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/lastweets/vendor/htmlburger/carbon-fields/core/Walker/Nav_Menu_Item_Edit_Walker.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/lastweets/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/lastweets/vendor/htmlburger/carbon-fields/core/Field/Map_Field.php:12
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/lastweets/vendor/htmlburger/carbon-fields/core/Service/Legacy_Storage_Service_v_1_5.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function Lastweets\\Functions\\refactor_tweet_object() in wp-content/plugins/lastweets/templates/single_tweet.php:2
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/lastweets/vendor/htmlburger/carbon-fields/core/Container/Condition/Current_User_ID_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\User_Capability_Condition' not found in wp-content/plugins/lastweets/vendor/htmlburger/carbon-fields/core/Container/Condition/Current_User_Capability_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/lastweets/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Level_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Post_Meta_Datastore' not found in wp-content/plugins/lastweets/vendor/htmlburger/carbon-fields/core/Datastore/Nav_Menu_Item_Datastore.php:7
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: twitter, oembed, tweet, latest tweet
lastweets/lastweets.php 92% from 13 tests
The entry point to "Lastweets" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin29,202 lines of code in 411 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 169 | 4,949 | 8,041 | 12,329 |
PHP | 153 | 2,599 | 6,569 | 9,215 |
PO File | 19 | 1,592 | 2,209 | 3,657 |
Sass | 49 | 334 | 19 | 1,740 |
CSS | 8 | 318 | 1,139 | 1,627 |
JSON | 5 | 0 | 0 | 443 |
Markdown | 6 | 57 | 0 | 164 |
XML | 1 | 0 | 0 | 18 |
YAML | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 123 | |
▷ Abstract classes | 11 | 8.94% |
▷ Concrete classes | 112 | 91.06% |
▷ Final classes | 1 | 0.89% |
Methods | 900 | |
▷ Static methods | 90 | 10.00% |
▷ Public methods | 732 | 81.33% |
▷ Protected methods | 163 | 18.11% |
▷ Private methods | 5 | 0.56% |
Functions | 123 | |
▷ Named functions | 44 | 35.77% |
▷ Anonymous functions | 79 | 64.23% |
Constants | 37 | |
▷ Global constants | 10 | 27.03% |
▷ Class constants | 27 | 72.97% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/j7mbo/twitter-api-php/test/img.png | 18.88KB | 10.40KB | ▼ 44.90% |