Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/st-twitter-wp/widget.php+100
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼193.87ms] Passed 4 tests
An overview of server-side resources used by ST Twitter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼0.98 | 9.46 ▼17.41 |
Dashboard /wp-admin | 1.76 ▼1.29 | 5.85 ▼44.90 |
Posts /wp-admin/edit.php | 1.76 ▼1.35 | 4.96 ▼42.69 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 4.82 ▼650.58 |
Media Library /wp-admin/upload.php | 1.76 ▼1.25 | 6.58 ▼37.29 |
ST Twitter WP /wp-admin/options-general.php?page=st_twitter_wp | 1.76 | 4.67 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 2 new options
New WordPress options |
---|
st_twitter_admin_notice |
widget_st_twitter_widget |
Browser metrics Passed 4 tests
ST Twitter: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,846 ▲250 | 16.74 ▲1.27 | 25.05 ▲15.90 | 50.41 ▼1.46 |
Dashboard /wp-admin | 2,974 ▲40 | 5.94 ▼0.01 | 153.91 ▲3.08 | 129.11 ▲10.20 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.70 ▲0.01 | 73.29 ▼0.50 | 93.00 ▲1.06 |
Add New Post /wp-admin/post-new.php | 1,503 ▼91 | 18.92 ▲0.17 | 382.89 ▼47.93 | 112.61 ▼7.08 |
Media Library /wp-admin/upload.php | 1,814 ▲7 | 5.03 ▲0.03 | 181.77 ▲34.21 | 127.22 ▼4.57 |
ST Twitter WP /wp-admin/options-general.php?page=st_twitter_wp | 1,307 | 2.22 | 60.89 | 103.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/st-twitter-wp/widget.php+100
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 2 options in the database
- widget_st_twitter_widget
- st_twitter_admin_notice
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=st_twitter_wp
- > Deprecated in wp-content/plugins/st-twitter-wp/widget.php+100
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=st_twitter_wp
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in st_twitter_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=st_twitter_wp
- > Notice in wp-content/plugins/st-twitter-wp/st-twitter-wp.php+67
Trying to access array offset on value of type bool
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=st_twitter_wp
- > Notice in wp-content/plugins/st-twitter-wp/st-twitter-wp.php+71
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/st-twitter-wp/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/st-twitter-wp/st-twitter-wp.php:22
- > 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 96% from 29 tests
readme.txt Passed 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
2 plugin tags: twitter, twitter plugin
st-twitter-wp/st-twitter-wp.php 92% from 13 tests
The main file in "ST Twitter" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 242 characters long)
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
Good job! No executable or dangerous file extensions detected9,609 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,673 | 1,346 | 6,805 |
PHP | 4 | 167 | 357 | 1,054 |
CSS | 4 | 16 | 18 | 892 |
SVG | 1 | 0 | 0 | 605 |
HTML | 1 | 15 | 4 | 192 |
PO File | 1 | 22 | 22 | 61 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 40.50 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 9 | 15.25% |
▷ Public methods | 42 | 71.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 28.81% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.25MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
doc/assets/css/img/warning.png | 0.59KB | 0.50KB | ▼ 14.99% |
editor_button/images/st-twitter-icon.png | 2.54KB | 1.72KB | ▼ 32.27% |
doc/assets/images/st_twitter_wp_01.png | 61.17KB | 31.62KB | ▼ 48.30% |
(invalid) doc/assets/images/st_twitter_wp_03.png | 86.93KB | 0.00KB | ▼ 100.00% |
doc/assets/images/st_twitter_wp_02.png | 56.22KB | 27.14KB | ▼ 51.73% |