Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.60ms] Passed 4 tests
This is a short check of server-side resources used by Easy Twitter Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.10 ▲4.68 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.11 ▼1.16 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.49 ▼0.27 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 79.50 ▼20.22 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.37 ▲3.26 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_pearl_twitter_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Twitter Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.61 ▲0.34 | 5.59 ▲1.28 | 42.81 ▲3.67 |
Dashboard /wp-admin | 2,213 ▲28 | 4.85 ▼0.98 | 108.92 ▲7.84 | 35.46 ▼9.12 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.04 | 40.21 ▲2.60 | 35.38 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,518 ▼15 | 23.46 ▲0.28 | 650.57 ▲14.44 | 51.42 ▲2.26 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.19 ▼0.01 | 100.40 ▲0.85 | 40.07 ▼3.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_pearl_twitter_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/pearl-twitter/public/partials/pearl-twitter-public-display.php
- > /wp-content/plugins/pearl-twitter/admin/partials/pearl-twitter-admin-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pearl-twitter/admin/class-pearl-twitter-widget.php:6
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: twitter, twitter widget, twitter tweets
pearl-twitter/pearl-twitter.php Passed 13 tests
Analyzing the main PHP file in "Easy Twitter Widget" version 1.2.0
84 characters long description:
A light weight plugin to display recent Tweets with awesome customizability options.
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
Success! There were no dangerous files found in this plugin514 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 231 | 625 | 491 |
CSS | 2 | 6 | 8 | 17 |
JavaScript | 2 | 4 | 54 | 6 |
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.21 |
Average class complexity | 7.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 32 | 82.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 17.95% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected