Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.73ms] Passed 4 tests
Analyzing server-side resources used by Twitter Display and Cache
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 39.07 ▼2.13 |
Dashboard /wp-admin | 3.38 ▲0.03 | 44.69 ▼6.73 |
Posts /wp-admin/edit.php | 3.49 ▲0.09 | 49.81 ▲1.89 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.03 | 84.89 ▼17.56 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 33.01 ▼0.51 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_tt_twitter_widget |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Twitter Display and Cache
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.08 | 1.71 ▲0.11 | 38.67 ▼5.42 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.06 | 93.58 ▲5.88 | 42.12 ▼3.94 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.03 | 39.42 ▲1.65 | 42.19 ▲6.06 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.41 ▼0.19 | 650.18 ▲29.56 | 52.17 ▼2.99 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.21 ▼0.20 | 102.44 ▲1.73 | 40.30 ▼7.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_tt_twitter_widget
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
Even though everything seems fine, this is not an exhaustive test
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 items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitter-display-and-cache/twitter-display-and-cache.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
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
Please fix the following attributes:
- Screenshots: Screenshot #1 (Twitter Widget Screen) image missing
twitter-display-and-cache/twitter-display-and-cache.php Passed 13 tests
The main PHP file in "Twitter Display and Cache" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
Displays And Chaches Recent Tweets
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
Success! There were no dangerous files found in this plugin781 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 206 | 316 | 781 |
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.27 |
Average class complexity | 8.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 10 | 12.05% |
▷ Public methods | 69 | 83.13% |
▷ Protected methods | 2 | 2.41% |
▷ Private methods | 12 | 14.46% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin