Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼299.30ms] Passed 4 tests
A check of server-side resources used by Advanced Testimonials
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.18 | 54.12 ▲2.49 |
Dashboard /wp-admin | 3.53 ▲0.12 | 33.81 ▼6.84 |
Posts /wp-admin/edit.php | 3.76 ▲0.11 | 37.66 ▲2.07 |
Add New Post /wp-admin/post-new.php | 7.00 ▲0.03 | 89.83 ▼1,194.93 |
Media Library /wp-admin/upload.php | 3.41 ▲0.11 | 26.28 ▲2.70 |
All Items /wp-admin/edit.php?post_type=advtestimonials | 3.51 | 25.28 |
Add New /wp-admin/post-new.php?post_type=advtestimonials | 3.75 | 44.61 |
Category /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=advtestimonials | 3.41 | 26.92 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Testimonials
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,941 ▲188 | 16.26 ▲0.59 | 9.73 ▲2.61 | 1.90 ▼0.56 |
Dashboard /wp-admin | 2,936 ▲75 | 6.05 ▼0.17 | 118.44 ▼17.02 | 176.84 ▲15.98 |
Posts /wp-admin/edit.php | 2,733 ▲39 | 3.12 ▼0.11 | 64.54 ▲2.08 | 143.33 ▲3.57 |
Add New Post /wp-admin/post-new.php | 1,716 ▲55 | 18.24 ▲2.14 | 442.40 ▲22.35 | 158.36 ▲3.22 |
Media Library /wp-admin/upload.php | 1,737 ▲36 | 5.56 ▲0.05 | 132.53 ▼9.41 | 210.80 ▲29.35 |
All Items /wp-admin/edit.php?post_type=advtestimonials | 1,407 | 3.17 | 59.69 | 115.46 |
Add New /wp-admin/post-new.php?post_type=advtestimonials | 3,106 | 10.15 | 193.85 | 240.26 |
Category /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=advtestimonials | 1,668 | 2.73 | 55.54 | 108.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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/admin/partials/advanced-testimonial-admin-display.php
- > /wp-content/plugins/advanced-testimonials/public/partials/advanced-testimonial-public-display.php
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: reviews, testimonials, testimonial, codeincept, easy testimonial...
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
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected810 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
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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
All PNG images should be compressed to minimize bandwidth usage for end users
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/prev.png | 0.62KB | 0.64KB | 0.00% |
public/images/nexth.png | 0.41KB | 0.43KB | 0.00% |
public/images/next.png | 0.74KB | 0.80KB | 0.00% |
public/images/prevh.png | 1.77KB | 0.80KB | ▼ 55.04% |
admin/images/rating.png | 1.33KB | 1.17KB | ▼ 11.89% |