Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.00ms] Passed 4 tests
Server-side resources used by Comment Links New Tab
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 34.35 ▼8.06 |
Dashboard /wp-admin | 3.40 ▲0.09 | 43.59 ▼4.31 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.07 ▲2.90 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.04 ▼0.02 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.77 ▲0.39 |
Coms New Tab /wp-admin/options-general.php?page=comment-links-new-tab-settings | 3.30 | 34.64 |
Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
cruinnv_wp_comments_new_tab_css_options |
widget_theysaidso_widget |
can_compress_scripts |
cruinnv_wp_comments_new_tab_rel |
cruinnv_wp_comments_new_tab_title |
cruinnv_wp_comments_new_tab_target |
cruinnv_wp_comments_new_tab_whitelisted_one |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Comment Links New Tab
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲144 | 13.52 ▼1.09 | 8.03 ▲6.21 | 40.31 ▼5.31 |
Dashboard /wp-admin | 2,202 ▲22 | 5.56 ▼0.12 | 84.46 ▼3.70 | 72.77 ▲24.94 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 1.94 ▼0.06 | 44.50 ▲10.45 | 31.03 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.14 ▼0.52 | 758.52 ▲44.28 | 68.17 ▲8.60 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.18 ▲0.01 | 94.44 ▼7.63 | 72.71 ▲29.47 |
Coms New Tab /wp-admin/options-general.php?page=comment-links-new-tab-settings | 1,205 | 2.04 | 25.30 | 30.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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 take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-links-new-tab/include/settings.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-links-new-tab/include/settings.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/comment-links-new-tab/include/admin-help.php:2
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: links, open in new tab, open in new window, comment, wordpress comment links...
comment-links-new-tab/comment-links-new-tab.php 92% from 13 tests
The main file in "Comment Links New Tab" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 193 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected966 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 4 | 57 | 582 |
CSS | 2 | 0 | 6 | 276 |
JavaScript | 4 | 1 | 18 | 108 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 44.77KB | 20.78KB | ▼ 53.59% |
screenshot-1.png | 31.17KB | 16.86KB | ▼ 45.92% |
screenshot-3.png | 31.20KB | 15.65KB | ▼ 49.83% |
include/images/cruinnv-com-links-new-tab-admin.png | 0.69KB | 1.10KB | 0.00% |
include/images/cruinnv-com-links-new-tab-target.png | 0.40KB | 0.50KB | 0.00% |