Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼0.63ms] Passed 4 tests
An overview of server-side resources used by Advanced Testimonials
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.51 ▲1.94 |
Dashboard /wp-admin | 3.42 ▲0.11 | 44.42 ▼0.39 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 47.78 ▲4.20 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 82.53 ▼8.26 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 42.52 ▲10.32 |
All Items /wp-admin/edit.php?post_type=advtestimonials | 3.38 | 35.22 |
Add New /wp-admin/post-new.php?post_type=advtestimonials | 3.46 | 51.13 |
Category /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=advtestimonials | 3.33 | 35.11 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Advanced Testimonials: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.54 ▼0.84 | 5.44 ▲3.67 | 42.30 ▼1.27 |
Dashboard /wp-admin | 2,237 ▲46 | 5.84 ▲0.92 | 96.44 ▼10.03 | 73.57 ▲31.21 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 1.98 ▼0.06 | 34.21 ▼1.69 | 34.98 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,707 ▲165 | 24.89 ▲6.58 | 695.79 ▲92.65 | 53.58 ▼4.93 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.12 ▼0.14 | 99.24 ▼0.25 | 91.34 ▲49.07 |
All Items /wp-admin/edit.php?post_type=advtestimonials | 1,090 | 1.96 | 31.23 | 29.16 |
Add New /wp-admin/post-new.php?post_type=advtestimonials | 2,366 | 7.64 | 166.50 | 136.87 |
Category /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=advtestimonials | 1,296 | 2.14 | 26.49 | 30.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/advanced-testimonials/public/partials/advanced-testimonial-public-display.php
- > /wp-content/plugins/advanced-testimonials/admin/partials/advanced-testimonial-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: codeincept, client testimonials, reviews, easy testimonial, client...
advanced-testimonials/advanced-testimonials.php 92% from 13 tests
The main PHP file in "Advanced Testimonials" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin810 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 127 | 529 | 416 |
CSS | 4 | 48 | 18 | 374 |
SVG | 1 | 1 | 0 | 13 |
JavaScript | 3 | 4 | 54 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/prevh.png | 1.77KB | 0.80KB | ▼ 55.04% |
public/images/nexth.png | 0.41KB | 0.43KB | 0.00% |
public/images/next.png | 0.74KB | 0.80KB | 0.00% |
admin/images/rating.png | 1.33KB | 1.17KB | ▼ 11.89% |
public/images/prev.png | 0.62KB | 0.64KB | 0.00% |