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.39MB] [CPU: ▼3.37ms] Passed 4 tests
Analyzing server-side resources used by Portfolio and Projects
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 37.08 ▼4.89 |
Dashboard /wp-admin | 3.75 ▲0.44 | 47.67 ▼1.29 |
Posts /wp-admin/edit.php | 3.80 ▲0.45 | 50.20 ▲1.80 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 86.80 ▼9.08 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 35.78 ▲4.96 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
wpos_anylc_site_uid |
widget_theysaidso_widget |
wpos_anylc_redirect |
Browser metrics Passed 4 tests
A check of browser resources used by Portfolio and Projects
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,546 ▼1,216 | 13.53 ▼0.83 | 1.45 ▼0.28 | 16.33 ▼27.70 |
Dashboard /wp-admin | 2,221 ▲43 | 5.54 ▼0.15 | 98.35 ▼14.76 | 52.70 ▲8.28 |
Posts /wp-admin/edit.php | 2,122 ▲25 | 2.01 ▲0.05 | 40.29 ▲2.63 | 34.11 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.42 ▲0.16 | 624.27 ▼22.10 | 31.18 ▼31.64 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.24 ▼0.01 | 106.07 ▲6.29 | 41.70 ▼1.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- theysaidso_admin_options
- wpos_anylc_site_uid
- widget_recent-posts
- wpos_anylc_redirect
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: You are using too many tags: 19 tag instead of maximum 10
portfolio-and-projects/portfolio-and-projects.php Passed 13 tests
"Portfolio and Projects" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
87 characters long description:
Display Portfolio OR Projects in a grid view. Also work with Gutenberg shortcode block.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,164 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 694 | 887 | 2,597 |
JavaScript | 6 | 111 | 61 | 390 |
CSS | 5 | 10 | 8 | 176 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 2 | 25.00% |
Methods | 48 | |
▷ Static methods | 2 | 4.17% |
▷ Public methods | 44 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.33% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wpos-analytics/assets/images/wpos-logo.png | 9.04KB | 3.17KB | ▼ 64.91% |
assets/images/utility-50.png | 1.64KB | 0.82KB | ▼ 50.30% |
assets/images/SlidersPack-50.png | 6.48KB | 2.79KB | ▼ 56.91% |
wpos-plugins/assets/images/cart-2.png | 2.20KB | 1.82KB | ▼ 17.38% |
wpos-plugins/assets/images/utility-icon.png | 0.72KB | 0.82KB | 0.00% |