Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▲0.31ms] Passed 4 tests
Server-side resources used by DsgnWrks Twitter Importer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 39.13 ▼0.29 |
Dashboard /wp-admin | 3.48 ▲0.17 | 49.16 ▼1.40 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 56.12 ▲8.42 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 96.49 ▼1.61 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 39.85 ▲4.55 |
Twitter Importer /wp-admin/tools.php?page=dw-twitter-importer-settings | 3.61 | 35.21 |
Server storage [IO: ▲0.26MB] [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: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by DsgnWrks Twitter Importer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.35 ▼1.02 | 2.05 ▲0.21 | 44.60 ▲1.35 |
Dashboard /wp-admin | 2,213 ▲28 | 4.85 ▼1.01 | 109.37 ▼5.21 | 42.01 ▼0.58 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.03 | 39.34 ▼0.00 | 35.60 ▼1.79 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.22 ▲0.15 | 672.44 ▲28.39 | 52.91 ▼15.40 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.21 ▼0.02 | 98.55 ▼9.47 | 44.16 ▼1.49 |
Twitter Importer /wp-admin/tools.php?page=dw-twitter-importer-settings | 848 | 1.84 | 28.73 | 34.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required '_DWTW_PATHTwitterText/lib/Twitter/Autolink.php' (include_path='.:/usr/share/php') in wp-content/plugins/dsgnwrks-twitter-importer/DW_Twitter_Autolink.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dsgnwrks-twitter-importer/dsgnwrks-twitter-importer.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dsgnwrks-twitter-importer/TwitterWP/example.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/dsgnwrks-twitter-importer/settings.php:2
- > PHP Warning
Use of undefined constant _DWTW_PATH - assumed '_DWTW_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dsgnwrks-twitter-importer/DW_Twitter_Autolink.php on line 10
- > PHP Warning
require_once(_DWTW_PATHTwitterText/lib/Twitter/Autolink.php): failed to open stream: No such file or directory in wp-content/plugins/dsgnwrks-twitter-importer/DW_Twitter_Autolink.php on line 10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== DsgnWrks Twitter Importer===
) - Screenshots: These screenshots do not have images: #1 (Welcome Panel.), #2 (After adding a user, this is the options panel you'll be presented with. If you select a custom post-type in the post-type selector, the options may change based on the post-type's supports, as well as any custom taxonomies.)
dsgnwrks-twitter-importer/dsgnwrks-twitter-importer.php 92% from 13 tests
The entry point to "DsgnWrks Twitter Importer" version 1.1.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 183 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,009 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 456 | 1,023 | 1,673 |
Markdown | 2 | 58 | 0 | 169 |
CSS | 1 | 7 | 1 | 104 |
JavaScript | 1 | 24 | 6 | 63 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 34.29 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 12 | 11.32% |
▷ Public methods | 73 | 68.87% |
▷ Protected methods | 32 | 30.19% |
▷ Private methods | 1 | 0.94% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 2 | 14.29% |
▷ Class constants | 12 | 85.71% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/social.png | 29.96KB | 9.98KB | ▼ 66.70% |