Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/thinktwit/thinktwit.php+57
Function create_function() is deprecated
Server metrics [RAM: ▼0.99MB] [CPU: ▼51.76ms] Passed 4 tests
A check of server-side resources used by ThinkTwit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.04 ▼0.47 | 8.92 ▼30.04 |
Dashboard /wp-admin | 3.06 ▼0.29 | 11.04 ▼43.74 |
Posts /wp-admin/edit.php | 3.06 ▼0.34 | 9.24 ▼39.99 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.87 | 9.39 ▼93.25 |
Media Library /wp-admin/upload.php | 3.06 ▼0.21 | 11.22 ▼29.51 |
ThinkTwit /wp-admin/options-general.php?page=thinktwit | 3.06 | 10.66 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_thinktwit |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for ThinkTwit
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲142 | 13.84 ▼0.76 | 8.01 ▲6.18 | 44.36 ▲1.37 |
Dashboard /wp-admin | 2,201 ▲21 | 5.61 ▼0.06 | 92.97 ▲4.32 | 38.47 ▼7.42 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.00 ▲0.03 | 39.38 ▼4.89 | 35.92 ▼2.75 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.05 ▼5.01 | 636.46 ▼54.70 | 63.18 ▲6.13 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.19 ▲0.06 | 96.58 ▼24.34 | 41.90 ▼8.00 |
ThinkTwit /wp-admin/options-general.php?page=thinktwit | 937 | 2.01 | 23.36 | 29.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/thinktwit/thinktwit.php+57
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=thinktwit
- > Deprecated in wp-content/plugins/thinktwit/thinktwit.php+57
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=thinktwit
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=thinktwit
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/thinktwit/thinktwit.php:28
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (screenshot-6.png shows the settings that can be configured within the widget)
thinktwit/thinktwit.php 92% from 13 tests
The entry point to "ThinkTwit" version 1.7.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 405 characters long)
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 detected2,073 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 450 | 536 | 1,616 |
PO File | 2 | 190 | 380 | 439 |
CSS | 1 | 4 | 1 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 99.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 295.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 53 | 63.86% |
▷ Public methods | 52 | 62.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 31 | 37.35% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 27 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.32MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 70.47KB | 28.50KB | ▼ 59.56% |
screenshot-4.png | 57.79KB | 23.07KB | ▼ 60.08% |
screenshot-3.png | 18.42KB | 8.26KB | ▼ 55.18% |
screenshot-2.png | 81.45KB | 29.61KB | ▼ 63.64% |
screenshot-1.png | 62.00KB | 15.57KB | ▼ 74.89% |