Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼157.13ms] Passed 4 tests
This is a short check of server-side resources used by WPTweetImporter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 41.46 ▲19.17 |
Dashboard /wp-admin | 3.07 ▲0.02 | 49.10 ▼1.10 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 48.78 ▲4.72 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 97.22 ▼631.66 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 37.28 ▼0.47 |
WPTweetImporter /wp-admin/tools.php?page=WPTweetImporterAdmin | 2.99 | 35.30 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
WPTweetImporter_MESSAGES |
WPTweetImporter_TWITTER_CATEGORY |
WPTweetImporter_STATUS |
category_children |
WPTweetImporter_NUMBER_OF_TWEETS |
WPTweetImporter_INFOCLASS |
WPTweetImporter_CURRENT_PAGE |
Browser metrics Passed 4 tests
An overview of browser requirements for WPTweetImporter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲126 | 15.91 ▲0.59 | 14.63 ▲5.46 | 58.48 ▲2.45 |
Dashboard /wp-admin | 2,978 ▲47 | 5.95 ▼0.03 | 145.29 ▼8.20 | 126.67 ▼5.74 |
Posts /wp-admin/edit.php | 2,766 ▲27 | 2.72 ▲0.01 | 75.48 ▲4.91 | 99.36 ▼8.04 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.79 ▼0.01 | 407.16 ▲4.98 | 125.67 ▲13.77 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.03 ▲0.02 | 158.90 ▼0.58 | 135.23 ▲6.16 |
WPTweetImporter /wp-admin/tools.php?page=WPTweetImporterAdmin | 1,182 | 2.08 | 66.29 | 110.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- WPTweetImporter_STATUS
- WPTweetImporter_CURRENT_PAGE
- category_children
- WPTweetImporter_NUMBER_OF_TWEETS
- WPTweetImporter_TWITTER_CATEGORY
- WPTweetImporter_INFOCLASS
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPTweetImporter' not found in wp-content/plugins/wptweetimporter/includes/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wptweetimporter/includes/main.php:262
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wptweetimporter/includes/main.php:262
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: twitter
wptweetimporter/WPTweetImporter.php 92% from 13 tests
Analyzing the main PHP file in "WPTweetImporter" version 1.0.3
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wptweetimporter.php" instead of "WPTweetImporter.php")
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
Everything looks great! No dangerous files found in this plugin1,056 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 282 | 365 | 958 |
Markdown | 2 | 45 | 0 | 98 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 27 | 29.03% |
▷ Public methods | 82 | 88.17% |
▷ Protected methods | 2 | 2.15% |
▷ Private methods | 9 | 9.68% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin