Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼294.17ms] Passed 4 tests
Analyzing server-side resources used by Testimonials
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 60.97 ▲3.38 |
Dashboard /wp-admin | 3.44 ▲0.03 | 36.95 ▼3.90 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 49.09 ▼4.32 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 97.59 ▼1,170.45 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 32.17 ▲2.01 |
Add New /wp-admin/post-new.php?post_type=testimonial | 3.25 | 88.99 |
Testimonials /wp-admin/edit.php?post_type=testimonial | 3.35 | 26.97 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Testimonials
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,938 ▲180 | 16.16 ▲0.56 | 10.14 ▲3.79 | 2.22 ▼0.60 |
Dashboard /wp-admin | 2,926 ▲75 | 6.22 ▲0.05 | 115.86 ▼15.29 | 180.98 ▲15.88 |
Posts /wp-admin/edit.php | 2,724 ▲36 | 3.24 ▼0.00 | 72.25 ▼7.49 | 191.52 ▲50.29 |
Add New Post /wp-admin/post-new.php | 1,658 ▼32 | 20.53 ▼0.51 | 537.20 ▲91.49 | 207.61 ▲42.50 |
Media Library /wp-admin/upload.php | 1,730 ▲32 | 5.52 ▲0.04 | 121.44 ▼21.45 | 190.13 ▲0.99 |
Add New /wp-admin/post-new.php?post_type=testimonial | 2,900 | 9.90 | 191.87 | 218.94 |
Testimonials /wp-admin/edit.php?post_type=testimonial | 1,401 | 2.94 | 57.28 | 111.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > Notice in wp-content/plugins/testimonials/cpt.php+59
Undefined index: testimonials_metabox_nonce
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
- 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/testimonials/view/list-three.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/testimonials/testimonials-metabox.php:2
- > PHP Notice
Undefined variable: style in wp-content/plugins/testimonials/view/list-two.php on line 2
- > PHP Warning
Use of undefined constant TP_PLUGIN_URL - assumed 'TP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonials/view/slider/slider-two.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/testimonials/view/slider/slider-three.php:5
- > PHP Notice
Undefined variable: testimonials in wp-content/plugins/testimonials/view/list-two.php on line 4
- > PHP Warning
Use of undefined constant TP_PLUGIN_URL - assumed 'TP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonials/view/slider/slider-one.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/testimonials/view/slider/slider-one.php:9
- > PHP Notice
Undefined variable: testimonials in wp-content/plugins/testimonials/view/slider/slider-three.php on line 5
- > PHP Notice
Undefined variable: columns in wp-content/plugins/testimonials/view/tp_table.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Requires at least: Version format is invalid
testimonials/testimonials.php 92% from 13 tests
The principal PHP file in "Testimonials" v. 3.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 217 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin948 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 68 | 44 | 438 |
CSS | 2 | 45 | 63 | 437 |
JavaScript | 2 | 26 | 12 | 73 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/arrow-right.png | 0.48KB | 0.39KB | ▼ 19.22% |
images/testimonials-icon.png | 0.37KB | 0.54KB | 0.00% |
images/arrow-left.png | 0.50KB | 0.42KB | ▼ 15.43% |
images/testimonials-icon02.png | 0.39KB | 0.62KB | 0.00% |