Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'activation' not found or invalid function name
Server metrics [RAM: ▼1.61MB] [CPU: ▼51.01ms] Passed 4 tests
Analyzing server-side resources used by Theme Junkie Testimonials Content
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.39 ▼1.07 | 10.39 ▼32.94 |
Dashboard /wp-admin | 2.40 ▼0.94 | 11.73 ▼52.19 |
Posts /wp-admin/edit.php | 2.40 ▼0.95 | 11.52 ▼35.28 |
Add New Post /wp-admin/post-new.php | 2.40 ▼3.48 | 12.44 ▼83.64 |
Media Library /wp-admin/upload.php | 2.40 ▼0.83 | 11.86 ▼23.56 |
Testimonials /wp-admin/edit.php?post_type=testimonial | 2.40 | 15.44 |
Add New /wp-admin/post-new.php?post_type=testimonial | 2.40 | 14.07 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_tjtsc-widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Theme Junkie Testimonials Content
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.32 ▼1.03 | 4.44 ▲2.65 | 37.86 ▼6.51 |
Dashboard /wp-admin | 2,233 ▲41 | 5.82 ▲0.80 | 95.74 ▼13.20 | 41.27 ▼1.38 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.03 ▼0.02 | 35.63 ▼0.50 | 34.95 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 17.53 ▲0.08 | 606.27 ▼65.75 | 50.76 ▲2.97 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.20 ▲0.06 | 93.33 ▼17.39 | 39.89 ▼6.45 |
Testimonials /wp-admin/edit.php?post_type=testimonial | 1,281 | 3.38 | 47.28 | 27.78 |
Add New /wp-admin/post-new.php?post_type=testimonial | 2,331 | 7.66 | 165.15 | 61.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Tj_Testimonials_Widget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_tjtsc-widget
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Tj_Testimonials_Widget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=testimonial
- > Notice in wp-content/plugins/theme-junkie-testimonials-content/admin/admin.php+70
Trying to get property 'ID' of non-object
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
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-testimonials-content/inc/post-type.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-testimonials-content/inc/extras.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/theme-junkie-testimonials-content/inc/widget.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-testimonials-content/admin/metabox.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/theme-junkie-testimonials-content/inc/shortcode.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/theme-junkie-testimonials-content/inc/messages.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-testimonials-content/admin/admin.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Testimonials screen), #2 (Meta boxes), #3 (Widget)
theme-junkie-testimonials-content/tj-testimonials-content.php 92% from 13 tests
Analyzing the main PHP file in "Theme Junkie Testimonials Content" version 0.1.0
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("theme-junkie-testimonials-content.php" instead of "tj-testimonials-content.php")
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
Everything looks great! No dangerous files found in this plugin572 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 175 | 352 | 398 |
PO File | 1 | 49 | 51 | 127 |
JavaScript | 1 | 14 | 17 | 27 |
CSS | 1 | 3 | 0 | 20 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.03MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 7.57KB | 7.59KB | 0.00% |
screenshot-2.png | 6.99KB | 7.07KB | 0.00% |
screenshot-1.png | 20.21KB | 19.56KB | ▼ 3.22% |