Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.04ms] Passed 4 tests
This is a short check of server-side resources used by Comment Tweets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 35.01 ▼0.47 |
Dashboard /wp-admin | 3.34 ▼0.00 | 47.92 ▼12.58 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.91 ▼1.11 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 81.37 ▼22.01 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 34.87 ▲2.17 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Comment Tweets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.31 ▼1.07 | 1.61 ▼0.14 | 40.46 ▲0.27 |
Dashboard /wp-admin | 2,210 ▲25 | 4.87 ▼0.04 | 107.52 ▲8.78 | 37.22 ▼5.08 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▲0.01 | 41.23 ▼2.26 | 34.56 ▼6.00 |
Add New Post /wp-admin/post-new.php | 6,237 ▲4,716 | 25.88 ▲2.88 | 862.34 ▲192.48 | 63.47 ▲9.47 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▼0.08 | 96.63 ▼7.17 | 40.90 ▼11.19 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (The default tweet form in the Post Editor Dashboard), #2 (Adding a single tweet to a post), #3 (Displaying multiple tweets to readers)
comment-tweets/comment-tweets.php Passed 13 tests
"Comment Tweets" version 2.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
108 characters long description:
Comment Tweets gives you the ability to take the URL of a tweet and add it to the conversation on your blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin185 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 92 | 161 | 134 |
PO File | 1 | 2 | 2 | 20 |
JavaScript | 2 | 8 | 4 | 18 |
LESS | 2 | 1 | 0 | 11 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 1 | 10.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 114.29KB | 37.65KB | ▼ 67.06% |
screenshot-1.png | 17.35KB | 6.03KB | ▼ 65.24% |
screenshot-2.png | 17.77KB | 6.47KB | ▼ 63.57% |