Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/web-smarter/index.php+459
Trying to access array offset on value of type null
Server metrics [RAM: ▼0.02MB] [CPU: ▼288.04ms] Passed 4 tests
Server-side resources used by Web Smarter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 56.92 ▲3.70 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.46 ▲0.16 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 41.87 ▲5.23 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 92.08 ▼1,156.78 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 24.79 ▲0.76 |
Server storage [IO: ▲2.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 89 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Web Smarter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲21 | 15.86 ▲0.21 | 5.71 ▼2.01 | 1.90 ▼0.27 |
Dashboard /wp-admin | 2,888 ▲30 | 6.16 ▼0.07 | 116.72 ▼20.52 | 154.81 ▼5.97 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.24 ▼0.00 | 62.98 ▲0.40 | 138.62 ▼5.65 |
Add New Post /wp-admin/post-new.php | 1,661 ▼91 | 16.23 ▼4.83 | 411.13 ▼51.59 | 158.98 ▲10.40 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.51 ▲0.01 | 139.93 ▲0.36 | 188.05 ▲1.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Please take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/web-smarter/vue/components/common/select2.php
- > /wp-content/plugins/web-smarter/index.php
- > /wp-content/plugins/web-smarter/vue/index.php
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function postUrlUsingCurl() on null in wp-content/plugins/web-smarter/vue/components/taskDetails.php:5
- > PHP Notice
Undefined variable: wpsTaskFunObj in wp-content/plugins/web-smarter/vue/components/common/kanban.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/web-smarter/vue/components/common/modelPopup.php:14
- > PHP Notice
Undefined variable: wpsTaskFunObj in wp-content/plugins/web-smarter/vue/components/taskListing.php on line 5
- > PHP Warning
Use of undefined constant WSP_ASSETS - assumed 'WSP_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/web-smarter/vue/components/common/modelPopup.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function postUrlUsingCurl() on null in wp-content/plugins/web-smarter/vue/components/common/kanban.php:5
- > PHP Notice
Undefined variable: wpsTaskFunObj in wp-content/plugins/web-smarter/vue/components/taskListingBoard.php on line 5
- > PHP Warning
Use of undefined constant WSP_VUE - assumed 'WSP_VUE' (this will throw an Error in a future version of PHP) in wp-content/plugins/web-smarter/vue/index.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'WebSmarter\\Includes\\Gatway\\Paypal\\Base_Paypal_Adapter' not found in wp-content/plugins/web-smarter/includes/gatway/paypal/class-paypal-ipn.php:13
- > PHP Notice
Undefined variable: wpsTaskFunObj in wp-content/plugins/web-smarter/vue/components/taskDetails.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #3, #4, #5, #6 in web-smarter/assets to your readme.txt
- Donate link: Invalid url: ""
- Stable tag: No value
web-smarter/index.php 77% from 13 tests
The main file in "Web Smarter" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("web-smarter.php" instead of "index.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 202 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected10,746 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 1,320 | 608 | 7,526 |
PHP | 25 | 272 | 735 | 2,187 |
CSS | 5 | 90 | 23 | 1,033 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 2 | 33.33% |
Methods | 57 | |
▷ Static methods | 7 | 12.28% |
▷ Public methods | 54 | 94.74% |
▷ Protected methods | 2 | 3.51% |
▷ Private methods | 1 | 1.75% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
42 PNG files occupy 0.67MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-4.png | 2.43KB | 0.45KB | ▼ 81.45% |
assets/images/blank-person__.png | 7.39KB | 2.00KB | ▼ 72.86% |
assets/images/side_plus.png | 1.94KB | 0.32KB | ▼ 83.55% |
assets/images/back_icon.png | 2.58KB | 0.74KB | ▼ 71.27% |
assets/images/icon-1.png | 3.06KB | 1.02KB | ▼ 66.69% |