Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-simple-twitter-feed/twitter-feed-widget.php+516
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.02ms] Passed 4 tests
Analyzing server-side resources used by WP Simple Twitter Feed
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.49 ▼34.06 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.46 ▼40.59 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.90 ▼42.30 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.89 ▼91.13 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.04 ▼28.58 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_twitter-feed-widget |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Simple Twitter Feed
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.44 ▲0.06 | 1.77 ▲0.12 | 42.71 ▼0.27 |
Dashboard /wp-admin | 2,215 ▲30 | 5.81 ▼0.03 | 95.69 ▼5.62 | 37.92 ▲2.22 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.01 ▲0.03 | 40.10 ▲2.46 | 35.81 ▲3.47 |
Add New Post /wp-admin/post-new.php | 1,543 ▲9 | 23.27 ▲0.27 | 644.49 ▲48.91 | 64.21 ▲9.22 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.23 ▲0.06 | 96.38 ▼3.63 | 44.80 ▲0.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-simple-twitter-feed/twitter-feed-widget.php+516
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_twitter-feed-widget
- widget_recent-comments
- 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wp-simple-twitter-feed/view/settings_page.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-simple-twitter-feed/twitter-feed-widget.php:19
- > 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 errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (16 tag instead of maximum 10)
wp-simple-twitter-feed/twitter-feed-widget.php 77% from 13 tests
The principal PHP file in "WP Simple Twitter Feed" v. 1.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.5")
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-simple-twitter-feed.php" instead of "twitter-feed-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin790 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 117 | 224 | 518 |
CSS | 2 | 18 | 1 | 122 |
Sass | 1 | 21 | 0 | 95 |
JavaScript | 1 | 18 | 30 | 55 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 25 | |
▷ Static methods | 12 | 48.00% |
▷ Public methods | 23 | 92.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected