Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼140.66ms] Passed 4 tests
Analyzing server-side resources used by Testimonial Post type
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▲0.28 | 38.38 ▲16.50 |
Dashboard /wp-admin | 3.22 ▲0.17 | 45.56 ▼0.18 |
Posts /wp-admin/edit.php | 3.33 ▲0.23 | 41.33 ▲1.87 |
Add New Post /wp-admin/post-new.php | 5.58 ▲0.15 | 88.99 ▼567.53 |
Media Library /wp-admin/upload.php | 3.16 ▲0.16 | 35.22 ▲3.22 |
Testimonial Taxonomy /wp-admin/edit-tags.php?taxonomy=taxonomy&post_type=testimonial | 3.16 | 32.53 |
Add New Testimonial /wp-admin/post-new.php?post_type=testimonial | 3.36 | 53.60 |
Testimonial Tags /wp-admin/edit-tags.php?taxonomy=tag&post_type=testimonial | 3.16 | 32.66 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 3.21 | 35.97 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Testimonial Post type
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,875 ▲279 | 16.71 ▲1.20 | 12.73 ▲4.44 | 47.27 ▼4.33 |
Dashboard /wp-admin | 3,016 ▲82 | 6.10 ▼0.12 | 152.13 ▲18.27 | 109.47 ▼9.04 |
Posts /wp-admin/edit.php | 2,788 ▲52 | 2.74 ▲0.02 | 69.28 ▲3.38 | 90.52 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,648 ▲148 | 21.86 ▲3.32 | 271.82 ▼81.99 | 103.88 ▼5.19 |
Media Library /wp-admin/upload.php | 1,859 ▲55 | 5.05 ▲0.04 | 146.47 ▲1.83 | 117.50 ▲1.08 |
Testimonial Taxonomy /wp-admin/edit-tags.php?taxonomy=taxonomy&post_type=testimonial | 1,788 | 2.40 | 57.99 | 78.14 |
Add New Testimonial /wp-admin/post-new.php?post_type=testimonial | 3,743 | 9.17 | 218.76 | 163.96 |
Testimonial Tags /wp-admin/edit-tags.php?taxonomy=tag&post_type=testimonial | 1,775 | 2.39 | 57.78 | 86.64 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 1,514 | 2.65 | 62.37 | 75.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/testimonial-post-type/public/partials/testimonial-post-type-public-display.php
- > /wp-content/plugins/testimonial-post-type/admin/partials/testimonial-post-type-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #1 is missing in testimonial-post-type/assets to your readme.txt
testimonial-post-type/testimonial-post-type.php Passed 13 tests
The main PHP file in "Testimonial Post type" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
Create a Testimonial post types, it's Taxonomy & Tags with Slider Shortcode.
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
There were no executable files found in this plugin7,359 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 6 | 18 | 46 | 2,594 |
JavaScript | 3 | 211 | 71 | 1,294 |
PHP | 12 | 178 | 536 | 800 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 1.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG images were found in this plugin