Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.35MB] [CPU: ▼317.80ms] Passed 4 tests
Analyzing server-side resources used by Advanced WP Testimonial
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.21 ▼0.30 | 20.16 ▼31.71 |
Dashboard /wp-admin | 3.36 ▼0.05 | 22.88 ▼13.16 |
Posts /wp-admin/edit.php | 3.42 ▼0.22 | 25.12 ▼20.20 |
Add New Post /wp-admin/post-new.php | 6.15 ▼0.82 | 73.98 ▼1,206.11 |
Media Library /wp-admin/upload.php | 3.36 ▲0.07 | 18.86 ▼6.49 |
Settings /wp-admin/edit.php?post_type=awt_testimonial&page=awt_settings | 3.37 | 24.24 |
Testimonials /wp-admin/edit.php?post_type=awt_testimonial | 3.51 | 28.07 |
Add Testimonials /wp-admin/post-new.php?post_type=awt_testimonial | 3.34 | 29.35 |
Server storage [IO: ▲0.60MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_awt_testimonial_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced WP Testimonial
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,807 ▲65 | 15.44 ▼0.16 | 6.61 ▲0.33 | 2.08 ▼0.05 |
Dashboard /wp-admin | 2,934 ▲81 | 6.16 ▲0.04 | 119.48 ▼13.23 | 160.82 ▼7.36 |
Posts /wp-admin/edit.php | 2,730 ▲39 | 3.23 ▼0.01 | 63.08 ▼5.51 | 140.90 ▼30.28 |
Add New Post /wp-admin/post-new.php | 1,687 ▼32 | 16.04 ▼5.99 | 413.04 ▼11.15 | 160.74 ▲7.76 |
Media Library /wp-admin/upload.php | 1,738 ▲40 | 5.54 ▲0.02 | 140.75 ▼2.48 | 186.47 ▼3.74 |
Settings /wp-admin/edit.php?post_type=awt_testimonial&page=awt_settings | 1,302 | 2.57 | 53.35 | 185.67 |
Testimonials /wp-admin/edit.php?post_type=awt_testimonial | 1,420 | 3.18 | 61.39 | 116.36 |
Add Testimonials /wp-admin/post-new.php?post_type=awt_testimonial | 3,006 | 10.17 | 189.74 | 211.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- widget_awt_testimonial_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=awt_testimonial
- > Notice in wp-content/plugins/advanced-wp-testimonial/init.php+89
Undefined index: awt_client_name
- > GET request to /wp-admin/post-new.php?post_type=awt_testimonial
- > Notice in wp-content/plugins/advanced-wp-testimonial/init.php+90
Undefined index: awt_client_siteurl
- > GET request to /wp-admin/post-new.php?post_type=awt_testimonial
- > Notice in wp-content/plugins/advanced-wp-testimonial/html/client_meta_box.php+4
Undefined index: post
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/advanced-wp-testimonial/template/widget-awt_testimonial.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-wp-testimonial/widgets/testimonial_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/advanced-wp-testimonial/template/archive-awt_testimonial.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-wp-testimonial/widgets/testimonial_widget.php:3
- > PHP Notice
Trying to get property 'posts' of non-object in wp-content/plugins/advanced-wp-testimonial/template/widget-awt_testimonial.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/advanced-wp-testimonial/template/single-awt_testimonial.php:2
- > PHP Notice
Trying to get property 'after_widget' of non-object in wp-content/plugins/advanced-wp-testimonial/template/widget-awt_testimonial.php on line 53
- > PHP Notice
Trying to get property 'before_widget' of non-object in wp-content/plugins/advanced-wp-testimonial/template/widget-awt_testimonial.php on line 4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/advanced-wp-testimonial/template/widget-awt_testimonial.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (General Settings Screen For the Plugin Options), #2 (list of All the Testimonials), #3 (Add New Testimonial)
advanced-wp-testimonial/init.php 92% from 13 tests
"Advanced WP Testimonial" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-wp-testimonial.php" instead of "init.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
No dangerous file extensions were detected721 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 90 | 33 | 699 |
JavaScript | 1 | 5 | 0 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.57MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/facebook.png | 4.16KB | 2.32KB | ▼ 44.35% |
img/wordpress.png | 4.79KB | 2.37KB | ▼ 50.49% |
screenshot-1.png | 177.87KB | 52.71KB | ▼ 70.37% |
screenshot-2.png | 193.99KB | 66.45KB | ▼ 65.74% |
screenshot-3.png | 197.49KB | 62.62KB | ▼ 68.29% |