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.07MB] [CPU: ▼141.73ms] Passed 4 tests
Server-side resources used by Pagli Companion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 38.66 ▲17.37 |
Dashboard /wp-admin | 3.13 ▲0.08 | 43.82 ▼1.96 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 47.61 ▲3.23 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 90.57 ▼571.12 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 34.07 ▲2.92 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 3.12 | 27.46 |
All Items /wp-admin/edit.php?post_type=portfolio | 3.12 | 34.24 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3.18 | 49.70 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio | 3.07 | 31.86 |
Add New /wp-admin/post-new.php?post_type=testimonial | 3.18 | 45.25 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Pagli Companion
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,762 ▲166 | 16.31 ▲0.80 | 8.51 ▼1.99 | 47.70 ▼0.27 |
Dashboard /wp-admin | 3,045 ▲114 | 6.04 ▲0.02 | 148.42 ▲3.93 | 116.57 ▲5.97 |
Posts /wp-admin/edit.php | 2,814 ▲75 | 2.72 ▲0.00 | 65.38 ▼3.20 | 94.67 ▲5.65 |
Add New Post /wp-admin/post-new.php | 1,549 ▼134 | 18.62 ▼0.22 | 410.92 ▲26.14 | 104.82 ▼3.46 |
Media Library /wp-admin/upload.php | 1,882 ▲75 | 5.06 ▲0.04 | 155.45 ▼11.67 | 116.69 ▼7.38 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 1,471 | 2.64 | 60.98 | 76.32 |
All Items /wp-admin/edit.php?post_type=portfolio | 1,490 | 2.76 | 61.81 | 74.89 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3,052 | 9.06 | 256.65 | 154.74 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio | 1,811 | 2.39 | 65.48 | 80.45 |
Add New /wp-admin/post-new.php?post_type=testimonial | 2,908 | 8.84 | 240.12 | 140.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pagli-companion/widgets/pagli-counter/tpl/default.php
- > /wp-content/plugins/pagli-companion/pagli-companion.php
- 27× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/pagli-companion/widgets/pagli-icon-text-block/tpl/layout3.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/pagli-companion/single-portfolio.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/pagli-companion/post-types/testimonial-post-type.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/pagli-companion/widgets/pagli-icon-text-block/tpl/layout3.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/pagli-companion/post-types/portfolio-post-type.php:3
- > PHP Fatal error
Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/pagli-companion/widgets/pagli-testimonial-slider/pagli-testimonial-slider.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/pagli-companion/widgets/pagli-icon-text-block/tpl/layout2.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/pagli-companion/widgets/pagli-portfolio-grid/tpl/default.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/pagli-companion/widgets/pagli-blog-carousel/tpl/default.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/pagli-companion/tpl-portfolio.php:17
- > PHP Warning
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 93% 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
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (screenshot-1.png)
pagli-companion/pagli-companion.php 92% from 13 tests
The principal PHP file in "Pagli Companion" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin12,148 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 3,448 | 2,440 | 9,601 |
CSS | 11 | 191 | 63 | 1,263 |
PHP | 21 | 171 | 239 | 1,254 |
LESS | 3 | 9 | 0 | 30 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
PNG images were not found in this plugin