Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼145.11ms] Passed 4 tests
An overview of server-side resources used by Import Tweets as Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.03 ▲0.19 | 40.29 ▲2.67 |
Dashboard /wp-admin | 3.35 ▲0.30 | 48.80 ▼0.59 |
Posts /wp-admin/edit.php | 3.40 ▲0.29 | 50.47 ▲0.35 |
Add New Post /wp-admin/post-new.php | 5.65 ▲0.21 | 93.92 ▼582.87 |
Media Library /wp-admin/upload.php | 3.23 ▲0.23 | 38.34 ▲5.34 |
Import Tweets as Posts /wp-admin/options-general.php?page=import_tweets_as_posts | 3.18 | 31.15 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Import Tweets as Posts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,712 ▲140 | 15.91 ▲0.36 | 9.10 ▼2.20 | 43.01 ▼1.69 |
Dashboard /wp-admin | 2,979 ▲45 | 6.06 ▼0.08 | 144.88 ▼13.87 | 111.72 ▼1.34 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.73 ▲0.00 | 67.35 ▲0.07 | 99.00 ▲5.04 |
Add New Post /wp-admin/post-new.php | 1,511 ▼104 | 18.54 ▼2.74 | 374.76 ▲48.54 | 111.14 ▲9.41 |
Media Library /wp-admin/upload.php | 1,757 ▼50 | 5.04 ▼0.00 | 161.73 ▼0.32 | 117.48 ▲7.29 |
Import Tweets as Posts /wp-admin/options-general.php?page=import_tweets_as_posts | 888 | 1.87 | 33.49 | 51.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=import_tweets_as_posts
- > Error in wp-admin/includes/template.php+1720
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/import-tweets-as-posts/itap-settings.php on line 191 and exactly 2 expected in wp-admin/includes/template.php:1720
Stack trace:
#0 wp-content/plugins/import-tweets-as-posts/itap-settings.php(191): do_settings_fields()
#1 wp-includes/class-wp-hook.php(303): ImportTweetsAsPosts_Settings->itap_plugin_settings_page()
#2 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(470): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/import-tweets-as-posts/import-tweets-as-posts.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
7 plugin tags: import tweets as posts, posts, tweets to posts, twitter feeds, import tweets by search query...
import-tweets-as-posts/import-tweets-as-posts.php Passed 13 tests
The main PHP file in "Import Tweets as Posts" ver. 3.0 adds more information about the plugin and also serves as the entry point for this plugin
100 characters long description:
Import tweets from user's timeline or search query as post or custom post type "tweet" in WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,100 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 245 | 332 | 1,054 |
JavaScript | 1 | 6 | 6 | 34 |
CSS | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An overview 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.35 |
Average class complexity | 10.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 10 | 12.20% |
▷ Public methods | 71 | 86.59% |
▷ Protected methods | 2 | 2.44% |
▷ Private methods | 9 | 10.98% |
Functions | 8 | |
▷ Named functions | 8 | 100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/paypal.png | 5.39KB | 1.65KB | ▼ 69.31% |