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
This plugin's installer ran successfully
Server metrics [RAM: ▲1.28MB] [CPU: ▲0.26ms] Passed 4 tests
Analyzing server-side resources used by TemplatesNext ToolKit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.79 ▲1.29 | 51.10 ▲6.90 |
Dashboard /wp-admin | 4.66 ▲1.28 | 66.36 ▼3.18 |
Posts /wp-admin/edit.php | 4.71 ▲1.31 | 59.40 ▲1.65 |
Add New Post /wp-admin/post-new.php | 7.22 ▲1.29 | 98.85 ▼4.34 |
Media Library /wp-admin/upload.php | 4.52 ▲1.25 | 55.61 ▲19.87 |
Dashboard /wp-admin/plugins.php?page=meta-box | 4.61 | 43.90 |
Add New /wp-admin/post-new.php?post_type=team | 4.76 | 84.34 |
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=testimonials-category&post_type=testimonials | 4.51 | 47.59 |
Add New /wp-admin/post-new.php?post_type=itrans-slider | 4.76 | 67.97 |
Portfolio /wp-admin/edit.php?post_type=portfolio | 4.62 | 52.12 |
Add New /wp-admin/post-new.php?post_type=testimonials | 4.76 | 62.58 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio | 4.51 | 46.78 |
Testimonials /wp-admin/edit.php?post_type=testimonials | 4.62 | 49.03 |
itrans Slider Categories /wp-admin/edit-tags.php?taxonomy=itrans-slider-category&post_type=itrans-slider | 4.51 | 44.38 |
Add New /wp-admin/post-new.php?post_type=portfolio | 4.73 | 61.93 |
Server storage [IO: ▲2.00MB] [DB: ▲0.05MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 390 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_widget-advert-grid |
widget_nx-widget-recent-posts |
widget_nx-widget-portfolio-grid |
widget_widget-nx-image |
can_compress_scripts |
db_upgraded |
widget_nx-widget-recent-comments |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by TemplatesNext ToolKit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,402 ▲1,656 | 14.05 ▼0.13 | 15.86 ▲14.16 | 43.75 ▼1.78 |
Dashboard /wp-admin | 3,514 ▲1,334 | 5.96 ▲0.42 | 92.69 ▼2.46 | 41.47 ▼4.90 |
Posts /wp-admin/edit.php | 3,401 ▲1,301 | 2.57 ▲0.60 | 42.90 ▲4.33 | 33.36 ▼3.57 |
Add New Post /wp-admin/post-new.php | 2,791 ▲1,254 | 23.68 ▲5.21 | 714.49 ▲73.44 | 38.96 ▼33.66 |
Media Library /wp-admin/upload.php | 2,698 ▲1,298 | 4.52 ▲0.34 | 118.17 ▲11.58 | 47.15 ▼1.00 |
Dashboard /wp-admin/plugins.php?page=meta-box | 3,025 | 9.34 | 317.15 | 79.04 |
Add New /wp-admin/post-new.php?post_type=team | 8,682 | 9.83 | 253.61 | 66.63 |
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=testimonials-category&post_type=testimonials | 2,578 | 2.41 | 36.20 | 32.64 |
Add New /wp-admin/post-new.php?post_type=itrans-slider | 8,622 | 9.85 | 268.30 | 58.78 |
Portfolio /wp-admin/edit.php?post_type=portfolio | 2,371 | 2.36 | 39.50 | 27.01 |
Add New /wp-admin/post-new.php?post_type=testimonials | 8,635 | 9.82 | 232.00 | 61.13 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio | 2,578 | 2.22 | 36.63 | 30.57 |
Testimonials /wp-admin/edit.php?post_type=testimonials | 2,371 | 2.37 | 38.80 | 26.98 |
itrans Slider Categories /wp-admin/edit-tags.php?taxonomy=itrans-slider-category&post_type=itrans-slider | 2,575 | 2.23 | 37.68 | 30.66 |
Add New /wp-admin/post-new.php?post_type=portfolio | 8,632 | 9.52 | 221.60 | 57.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_widget-nx-image
- widget_nx-widget-recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_nx-widget-recent-comments
- widget_recent-comments
- widget_nx-widget-portfolio-grid
- widget_recent-posts
- theysaidso_admin_options
- widget_widget-advert-grid
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/templatesnext-toolkit/inc/meta-box/inc/templates/media.php
- > /wp-content/plugins/templatesnext-toolkit/inc/meta-box/inc/templates/video.php
- > /wp-content/plugins/templatesnext-toolkit/inc/meta-box/inc/templates/upload.php
- > /wp-content/plugins/templatesnext-toolkit/inc/meta-box/inc/templates/image-advanced.php
- > /wp-content/plugins/templatesnext-toolkit/inc/meta-box/inc/templates/audio.php
- 97× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/templatesnext-toolkit/inc/pb-widgets/widget-team.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/templatesnext-toolkit/inc/meta-box/inc/about/sections/review.php:3
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/templatesnext-toolkit/inc/meta-box/inc/fields/map.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/templatesnext-toolkit/inc/pb-widgets/widget-services.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/templatesnext-toolkit/inc/meta-box/inc/about/sections/welcome.php:3
- > PHP Fatal error
Uncaught Error: Class 'MetaBox\\Support\\Arr' not found in wp-content/plugins/templatesnext-toolkit/inc/meta-box/inc/helpers/array.php:7
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Media_Field' not found in wp-content/plugins/templatesnext-toolkit/inc/meta-box/inc/fields/file-upload.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/templatesnext-toolkit/inc/widgets/widget-advertgrid.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/templatesnext-toolkit/inc/meta-box/inc/about/sections/support.php:10
- > PHP Fatal error
Uncaught Error: Class 'RWMB_File_Field' not found in wp-content/plugins/templatesnext-toolkit/inc/meta-box/inc/fields/media.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 18 tag instead of maximum 10
templatesnext-toolkit/tx-toolkit.php 85% from 13 tests
The principal PHP file in "TemplatesNext ToolKit" v. 3.2.9 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("templatesnext-toolkit.php" instead of "tx-toolkit.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin29,767 lines of code in 348 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 161 | 3,239 | 5,353 | 12,700 |
CSS | 55 | 1,328 | 279 | 9,227 |
JavaScript | 122 | 1,512 | 851 | 7,388 |
Sass | 7 | 66 | 94 | 427 |
XML | 1 | 0 | 0 | 15 |
JSON | 1 | 0 | 0 | 5 |
SVG | 1 | 0 | 0 | 5 |
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.25 |
Average class complexity | 8.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 120 | |
▷ Abstract classes | 6 | 5.00% |
▷ Concrete classes | 114 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 663 | |
▷ Static methods | 321 | 48.42% |
▷ Public methods | 572 | 86.27% |
▷ Protected methods | 55 | 8.30% |
▷ Private methods | 36 | 5.43% |
Functions | 162 | |
▷ Named functions | 156 | 96.30% |
▷ Anonymous functions | 6 | 3.70% |
Constants | 13 | |
▷ Global constants | 10 | 76.92% |
▷ Class constants | 3 | 23.08% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
31 PNG files occupy 0.45MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/meta-box/img/jqueryui/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |
screenshot-1.png | 219.74KB | 218.11KB | ▼ 0.74% |
css/images/vig-32.png | 64.44KB | 31.31KB | ▼ 51.42% |
css/images/vig-24.png | 54.71KB | 26.73KB | ▼ 51.14% |