Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼144.15ms] Passed 4 tests
This is a short check of server-side resources used by Wordpress Business Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.12 ▲0.28 | 54.32 ▲17.72 |
Dashboard /wp-admin | 3.37 ▲0.32 | 54.89 ▼8.89 |
Posts /wp-admin/edit.php | 3.48 ▲0.37 | 55.72 ▲2.95 |
Add New Post /wp-admin/post-new.php | 5.72 ▲0.29 | 102.71 ▼572.40 |
Media Library /wp-admin/upload.php | 3.30 ▲0.30 | 40.78 ▲1.75 |
Add New Question /wp-admin/post-new.php?post_type=snilesh-faq | 3.45 | 55.75 |
Testimonials Categories /wp-admin/edit-tags.php?taxonomy=testimonials-category&post_type=snilesh-testimonials | 3.30 | 41.55 |
Add New Team Member /wp-admin/post-new.php?post_type=snilesh-team | 3.45 | 84.00 |
Departments /wp-admin/edit-tags.php?taxonomy=department&post_type=snilesh-team | 3.30 | 41.07 |
All FAQ Questions /wp-admin/edit.php?post_type=snilesh-faq | 3.34 | 40.55 |
All Team Members /wp-admin/edit.php?post_type=snilesh-team | 3.34 | 42.63 |
All Testimonials /wp-admin/edit.php?post_type=snilesh-testimonials | 3.34 | 39.83 |
Add New Testimonial /wp-admin/post-new.php?post_type=snilesh-testimonials | 3.45 | 59.43 |
FAQ Categories /wp-admin/edit-tags.php?taxonomy=faq-category&post_type=snilesh-faq | 3.30 | 37.97 |
Server storage [IO: ▲1.69MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 272 new files
Database: no new tables, 1 new option
New WordPress options |
---|
nsbp_updated_versionposttype12 |
Browser metrics Passed 4 tests
Checking browser requirements for Wordpress Business Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,964 ▲368 | 17.02 ▲1.11 | 14.39 ▲4.75 | 52.26 ▼2.85 |
Dashboard /wp-admin | 3,121 ▲190 | 6.75 ▲0.78 | 164.44 ▼8.03 | 141.10 ▲23.68 |
Posts /wp-admin/edit.php | 2,915 ▲176 | 2.78 ▲0.07 | 79.66 ▼0.29 | 116.91 ▲20.98 |
Add New Post /wp-admin/post-new.php | 1,794 ▲111 | 18.45 ▼0.31 | 401.71 ▼2.38 | 114.66 ▼1.87 |
Media Library /wp-admin/upload.php | 1,909 ▲102 | 5.39 ▲0.32 | 174.58 ▲9.09 | 144.79 ▲20.00 |
Add New Question /wp-admin/post-new.php?post_type=snilesh-faq | 3,192 | 9.30 | 254.89 | 186.68 |
Testimonials Categories /wp-admin/edit-tags.php?taxonomy=testimonials-category&post_type=snilesh-testimonials | 1,914 | 2.69 | 75.14 | 106.72 |
Add New Team Member /wp-admin/post-new.php?post_type=snilesh-team | 3,421 | 9.21 | 333.62 | 208.62 |
Departments /wp-admin/edit-tags.php?taxonomy=department&post_type=snilesh-team | 1,911 | 2.68 | 62.85 | 103.63 |
All FAQ Questions /wp-admin/edit.php?post_type=snilesh-faq | 1,585 | 2.72 | 76.41 | 108.07 |
All Team Members /wp-admin/edit.php?post_type=snilesh-team | 1,612 | 2.72 | 80.05 | 91.80 |
All Testimonials /wp-admin/edit.php?post_type=snilesh-testimonials | 1,609 | 2.71 | 68.41 | 92.52 |
Add New Testimonial /wp-admin/post-new.php?post_type=snilesh-testimonials | 3,294 | 8.48 | 260.10 | 172.87 |
FAQ Categories /wp-admin/edit-tags.php?taxonomy=faq-category&post_type=snilesh-faq | 1,914 | 2.68 | 68.02 | 102.74 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- nsbp_updated_versionposttype12
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 items
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/business/inc/team/team-shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/business/inc/faq/faq-shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/business/inc/admin/admin.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/business/inc/testimonials/testimonials.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/business/wp-business.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/business/inc/testimonials/testimonial-shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/business/inc/team/team.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/business/inc/faq/faq.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/business/inc/shortcodes.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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: These screenshots require images: #1 (FAQ Page Created Using [FAQ] shortcode.), #2 (Testimonials Without Images using [testimonials image="false"] shortcode.), #3 (Testimonials Page created using [testimonials] shortcode.), #4 (Team Member's Page Created using [team column="4"] shortcode.), #5 (Skills added using [skills] shortcode.)
- Tags: There are too many tags (51 tag instead of maximum 10)
business/wp-business.php 85% from 13 tests
"Wordpress Business Plugin" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("business.php" instead of "wp-business.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
No dangerous file extensions were detected1,670 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 197 | 112 | 1,192 |
CSS | 2 | 45 | 52 | 417 |
JavaScript | 2 | 1 | 0 | 46 |
PO File | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 39 | |
▷ Named functions | 36 | 92.31% |
▷ Anonymous functions | 3 | 7.69% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
253 PNG files occupy 1.62MB with 1.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/social/white/flout.png | 3.05KB | 0.51KB | ▼ 83.25% |
images/icons/social/yellow/vimeo.png | 3.14KB | 0.59KB | ▼ 81.24% |
images/icons/social/white/myspace.png | 3.10KB | 0.62KB | ▼ 80.14% |
images/icons/social/yellow/instagram.png | 13.40KB | 0.81KB | ▼ 93.97% |
images/icons/social/black/pinterest.png | 13.37KB | 0.75KB | ▼ 94.39% |