Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/showtweets-plugin/showtweets-plugin.php+43
Methods with the same name as their class will not be constructors in a future version of PHP; showtweets_widget has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼54.31ms] Passed 4 tests
This is a short check of server-side resources used by ShowTweets Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 5.76 ▼38.64 |
Dashboard /wp-admin | 2.18 ▼1.12 | 10.27 ▼48.34 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 6.22 ▼40.26 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 5.55 ▼89.99 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 5.69 ▼29.82 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_showtweets_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
ShowTweets Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.37 ▲0.09 | 1.71 ▼0.10 | 43.07 ▼6.25 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▲0.09 | 92.06 ▼8.08 | 40.36 ▼1.46 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.16 ▲0.13 | 39.68 ▲2.80 | 36.77 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.04 ▲0.05 | 628.13 ▼49.69 | 57.85 ▲3.05 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.15 ▼0.02 | 100.38 ▼6.20 | 42.32 ▼1.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
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/showtweets-plugin/showtweets-plugin.php+43
Methods with the same name as their class will not be constructors in a future version of PHP; showtweets_widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_showtweets_widget
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/showtweets-plugin/uninstall.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/showtweets-plugin/showtweets-plugin.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% 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
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot1.png Showtweets Plugin as seen to your users), #2 (screenshot2.png Showtweets Plugin viewed from the administation section)
showtweets-plugin/showtweets-plugin.php Passed 13 tests
The main PHP file in "ShowTweets Plugin" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
The showtweets plugin allows you to display your most recent tweets on your blog.
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
Everything looks great! No dangerous files found in this plugin560 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 4 | 120 | 188 | 306 |
PHP | 2 | 94 | 43 | 253 |
CSS | 1 | 0 | 0 | 1 |
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.33 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 13.61KB | 6.60KB | ▼ 51.54% |
img/twitter.png | 1.64KB | 1.52KB | ▼ 7.33% |
screenshot-1.png | 5.68KB | 3.56KB | ▼ 37.37% |