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.05MB] [CPU: ▼0.76ms] Passed 4 tests
Analyzing server-side resources used by ez_simple_tweet
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.43 ▲0.30 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.38 ▼2.57 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 44.72 ▼2.78 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.03 ▲4.06 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 35.50 ▲2.02 |
EZ Tweet Options /wp-admin/options-general.php?page=ez-simple-tweet/class_eztweet.php | 3.26 | 31.08 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_eztweet_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by ez_simple_tweet
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.57 ▼0.85 | 5.07 ▲3.37 | 44.54 ▼4.16 |
Dashboard /wp-admin | 2,210 ▲25 | 5.91 ▲0.05 | 101.07 ▼20.66 | 39.05 ▼8.24 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▼0.01 | 35.96 ▼6.23 | 31.17 ▼3.91 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 23.37 ▲0.13 | 590.67 ▼75.80 | 57.97 ▲7.24 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.20 ▼0.06 | 95.36 ▼4.73 | 42.90 ▲1.01 |
EZ Tweet Options /wp-admin/options-general.php?page=ez-simple-tweet/class_eztweet.php | 856 | 2.02 | 22.75 | 28.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_eztweet_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ez-simple-tweet/inc/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/ez-simple-tweet/inc/admin_page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ez-simple-tweet/ez_simple_tweet.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Enter in Twitter app and create an application.), #2 (Once you create your app, you will get the Keys.), #3 (Generate an access token and copy the token keys.), #4 (Enter your keys inside the admin page.), #5 (This is how you will see your last tweet using the shortcode inside a post.), #6 (This is the last tweet showing it in the widget.)
ez-simple-tweet/ez_simple_tweet.php 92% from 13 tests
The primary PHP file in "ez_simple_tweet" version 0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("ez-simple-tweet.php" instead of "ez_simple_tweet.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected344 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 48 | 37 | 265 |
PO File | 1 | 19 | 19 | 60 |
CSS | 1 | 2 | 0 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 22.22% |
Functions | 2 | |
▷ Named functions | 2 | 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 were not PNG files found in your plugin