Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼142.28ms] Passed 4 tests
Analyzing server-side resources used by Import Tweets as WP Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 46.69 ▲24.46 |
Dashboard /wp-admin | 3.13 ▲0.07 | 55.21 ▲2.66 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 53.62 ▲0.17 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 97.53 ▼568.54 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 37.14 ▼3.42 |
Twitter Importer /wp-admin/options-general.php?page=tweets-to-posts | 3.05 | 38.13 |
Server storage [IO: ▲1.01MB] [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: 65 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Import Tweets as WP Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,701 ▲129 | 15.99 ▲0.43 | 8.42 ▼3.99 | 52.43 ▲0.14 |
Dashboard /wp-admin | 2,988 ▲51 | 5.89 ▼0.03 | 157.21 ▼5.47 | 118.25 ▼2.76 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.60 ▼0.12 | 75.10 ▼8.71 | 98.77 ▲3.68 |
Add New Post /wp-admin/post-new.php | 1,698 ▲83 | 18.74 ▼2.38 | 435.67 ▲129.21 | 117.30 ▲3.06 |
Media Library /wp-admin/upload.php | 1,757 ▼50 | 5.02 ▼0.04 | 175.69 ▲2.20 | 128.93 ▲4.94 |
Twitter Importer /wp-admin/options-general.php?page=tweets-to-posts | 1,227 | 2.08 | 57.20 | 83.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/import-tweets-as-wp-posts/vendor/j7mbo/twitter-api-php/index.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/import-tweets-as-wp-posts/vendor/abraham/twitteroauth/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/import-tweets-as-wp-posts/vendor/abraham/twitteroauth/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/import-tweets-as-wp-posts/vendor/abraham/twitteroauth/tests/Util/JsonDecoderTest.php:7
- > PHP Warning
require(wp-content/plugins/import-tweets-as-wp-posts/vendor/abraham/twitteroauth/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/import-tweets-as-wp-posts/vendor/abraham/twitteroauth/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/import-tweets-as-wp-posts/vendor/abraham/twitteroauth/tests/AbstractSignatureMethodTest.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/import-tweets-as-wp-posts/admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/import-tweets-as-wp-posts/vendor/abraham/twitteroauth/tests/TwitterOAuthTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\SignatureMethod' not found in wp-content/plugins/import-tweets-as-wp-posts/vendor/abraham/twitteroauth/src/HmacSha1.php:15
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\Tests\\AbstractSignatureMethodTest' not found in wp-content/plugins/import-tweets-as-wp-posts/vendor/abraham/twitteroauth/tests/HmacSha1Test.php:7
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\Config' not found in wp-content/plugins/import-tweets-as-wp-posts/vendor/abraham/twitteroauth/src/TwitterOAuth.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/import-tweets-as-wp-posts/options.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tweets-to-posts
- > Network (severe)
wp-content/plugins/import-tweets-as-wp-posts/tweetie.min.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% 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:
- Plugin Name: Please specify the plugin name on the first line (
=== import-tweets-as-wp-posts ===
)
import-tweets-as-wp-posts/import-tweets-as-wp-posts.php Passed 13 tests
Analyzing the main PHP file in "Import Tweets as WP Posts" version 1.3
109 characters long description:
Get a tweets list from a request (hashtag, user, free request) and add their content to your own Wordpress :)
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 plugin3,085 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 539 | 1,065 | 2,136 |
PO File | 2 | 95 | 194 | 232 |
JavaScript | 1 | 39 | 1 | 216 |
Markdown | 6 | 81 | 0 | 194 |
JSON | 4 | 0 | 0 | 182 |
CSS | 1 | 6 | 0 | 62 |
XML | 3 | 2 | 1 | 41 |
YAML | 2 | 3 | 0 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 2 | 9.09% |
▷ Concrete classes | 20 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 159 | |
▷ Static methods | 10 | 6.29% |
▷ Public methods | 139 | 87.42% |
▷ Protected methods | 5 | 3.14% |
▷ Private methods | 15 | 9.43% |
Functions | 18 | |
▷ Named functions | 15 | 83.33% |
▷ Anonymous functions | 3 | 16.67% |
Constants | 19 | |
▷ Global constants | 12 | 63.16% |
▷ Class constants | 7 | 36.84% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo-t2p.png | 3.68KB | 1.76KB | ▼ 52.02% |
vendor/j7mbo/twitter-api-php/test/img.png | 18.88KB | 10.40KB | ▼ 44.90% |