Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.58ms] Passed 4 tests
Analyzing server-side resources used by PB Modular Pattern System
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 43.51 ▲3.62 |
Dashboard /wp-admin | 3.38 ▲0.07 | 52.91 ▼3.37 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.59 ▼9.98 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.55 ▼16.58 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.77 ▲6.61 |
PB Modular Pattern System /wp-admin/options-general.php?page=pb-modular-pattern-system | 3.27 | 35.69 |
Server storage [IO: ▲14.69MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 364 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for PB Modular Pattern System
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.76 ▲0.34 | 1.75 ▼0.28 | 43.35 ▼1.59 |
Dashboard /wp-admin | 2,204 ▲24 | 5.62 ▼0.04 | 97.61 ▲8.73 | 43.33 ▲6.47 |
Posts /wp-admin/edit.php | 2,106 ▲27 | 2.04 ▲0.06 | 33.62 ▼6.57 | 33.57 ▼3.49 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.10 ▼0.02 | 622.84 ▼64.87 | 49.84 ▼4.28 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.19 ▼0.04 | 95.22 ▼7.84 | 43.42 ▼3.08 |
PB Modular Pattern System /wp-admin/options-general.php?page=pb-modular-pattern-system | 984 | 2.02 | 27.90 | 53.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 14× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/pb-modular-pattern-system/_patterns/00-elements/image.php
- > /wp-content/plugins/pb-modular-pattern-system/_patterns/00-elements/heading.php
- > /wp-content/plugins/pb-modular-pattern-system/_patterns/00-elements/link.php
- > /wp-content/plugins/pb-modular-pattern-system/functions/vendor_frameworks.php
- > /wp-content/plugins/pb-modular-pattern-system/_patterns/00-elements/code.php
- > /wp-content/plugins/pb-modular-pattern-system/_patterns/00-elements/link.blade.php
- > /wp-content/plugins/pb-modular-pattern-system/_patterns/02-partials/uikit/3/usp/usp-bar-default.php
- > /wp-content/plugins/pb-modular-pattern-system/_meta/foot.php
- > /wp-content/plugins/pb-modular-pattern-system/_patterns/00-elements/text.blade.php
- > /wp-content/plugins/pb-modular-pattern-system/_patterns/00-elements/heading.blade.php
- 191× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: var in wp-content/plugins/pb-modular-pattern-system/_patterns/02-partials/uikit/3/posts/postloop.php on line 11
- > PHP Notice
Undefined variable: var in wp-content/plugins/pb-modular-pattern-system/_patterns/02-partials/uikit/3/text/title-text-link-default.php on line 12
- > PHP Notice
Undefined variable: pbmps_element_tag in wp-content/plugins/pb-modular-pattern-system/_patterns/00-elements/heading.php on line 10
- > PHP Notice
Undefined variable: var in wp-content/plugins/pb-modular-pattern-system/_patterns/02-partials/uikit/3/posts/postloop.php on line 9
- > PHP Notice
Undefined variable: pbmps_element_text in wp-content/plugins/pb-modular-pattern-system/_patterns/00-elements/link.blade.php on line 11
- > PHP Notice
Undefined variable: pbmps_element_address_fax in wp-content/plugins/pb-modular-pattern-system/_patterns/00-elements/address.blade.php on line 39
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pb-modular-pattern-system/_patterns/02-partials/uikit/3/posts/postloop.php on line 17
- > PHP Notice
Undefined variable: pbmps_element_classes in wp-content/plugins/pb-modular-pattern-system/_patterns/00-elements/text.blade.php on line 9
- > PHP Notice
Undefined variable: pbmps_element_classes in wp-content/plugins/pb-modular-pattern-system/_patterns/00-elements/link.blade.php on line 8
- > PHP Notice
Undefined variable: type in wp-content/plugins/pb-modular-pattern-system/_patterns/00-elements/heading.php on line 10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 16 tag instead of maximum 10
pb-modular-pattern-system/pb-modular-pattern-system.php 92% from 13 tests
The main PHP script in "PB Modular Pattern System" version 0.4.5 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages")
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 detected144,380 lines of code in 255 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 108 | 2,930 | 19,651 | 94,728 |
JavaScript | 100 | 16,622 | 4,486 | 47,991 |
PHP | 31 | 275 | 142 | 1,102 |
SVG | 2 | 0 | 0 | 289 |
LESS | 2 | 41 | 7 | 207 |
Blade | 2 | 10 | 8 | 44 |
Markdown | 10 | 9 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 32 | 100.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
Constants | 19 | |
▷ Global constants | 19 | 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 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/facebook.png | 0.76KB | 0.47KB | ▼ 37.85% |
assets/images/mail.png | 1.16KB | 0.69KB | ▼ 40.34% |
assets/images/linkedin.png | 1.19KB | 0.75KB | ▼ 36.86% |
assets/images/pbmps-logo.png | 15.59KB | 9.63KB | ▼ 38.25% |
assets/images/internet.png | 3.28KB | 1.84KB | ▼ 43.84% |