Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▼145.98ms] Passed 4 tests
Server-side resources used by SquareComm
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.30 ▲0.46 | 45.54 ▲12.52 |
Dashboard /wp-admin | 3.58 ▲0.53 | 52.85 ▲3.09 |
Posts /wp-admin/edit.php | 3.63 ▲0.53 | 52.75 ▼2.80 |
Add New Post /wp-admin/post-new.php | 5.88 ▲0.44 | 104.89 ▼584.64 |
Media Library /wp-admin/upload.php | 3.46 ▲0.46 | 37.57 ▲0.43 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for SquareComm
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.98 ▲0.39 | 10.84 ▲2.68 | 57.49 ▲7.34 |
Dashboard /wp-admin | 2,970 ▲42 | 6.12 ▲0.19 | 170.35 ▼33.45 | 131.04 ▼1.83 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.02 | 80.88 ▲1.21 | 104.40 ▼7.49 |
Add New Post /wp-admin/post-new.php | 1,683 ▲102 | 17.99 ▲1.09 | 439.99 ▼12.88 | 149.30 ▲19.25 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▲0.02 | 162.15 ▼38.39 | 122.38 ▼18.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 fix the following items
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/squarecomm/SquareCommAPI/file.php on line 28
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/squarecomm/SquareCommAPI/file.php on line 28
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/squarecomm/SquareCommAPI/file.php on line 28
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/squarecomm/SquareCommAPI/file.php on line 28
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/squarecomm/SquareCommAPI/file.php on line 28
- > PHP Notice
Undefined index: request in wp-content/plugins/squarecomm/SquareStateAPI/sqss.php on line 37
- > PHP Warning
require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/squarecomm/SquareCommAPI/file.php on line 28
- > PHP Warning
require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/squarecomm/SquareCommAPI/file.php on line 28
- > PHP Warning
require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/squarecomm/SquareCommAPI/file.php on line 28
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/squarecomm/SquareCommAPI/file.php on line 28
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== squarecomm ===
) - Tags: There are too many tags (16 tag instead of maximum 10)
squarecomm/SquareComm-plugin.php 92% from 13 tests
"SquareComm" version 2.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("squarecomm.php" instead of "SquareComm-plugin.php")
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
No dangerous file extensions were detected2,933 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 833 | 877 | 2,933 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 68.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 290.00 |
Average method complexity | 7.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 4 | 57.14% |
▷ Concrete classes | 3 | 42.86% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 47.95% |
▷ Protected methods | 13 | 17.81% |
▷ Private methods | 25 | 34.25% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 45 | |
▷ Global constants | 6 | 13.33% |
▷ Class constants | 39 | 86.67% |
▷ Public constants | 39 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin