Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Parse error in wp-content/plugins/segmentlab-extension/segment-lab-extension.php+2742
syntax error, unexpected 'default' (T_DEFAULT)
Server metrics [RAM: ▼0.02MB] [CPU: ▼292.94ms] Passed 4 tests
This is a short check of server-side resources used by SegmentLab Extension
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 61.52 ▼1.50 |
Dashboard /wp-admin | 3.41 ▲0.00 | 39.91 ▲2.26 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 56.79 ▲15.28 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 96.74 ▼1,161.61 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 48.95 ▼10.92 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for SegmentLab Extension
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲27 | 15.51 ▼0.24 | 5.64 ▼2.08 | 2.75 ▼0.04 |
Dashboard /wp-admin | 2,881 ▲27 | 6.09 ▼0.18 | 113.87 ▼45.16 | 155.11 ▼20.44 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.25 ▲0.02 | 63.67 ▼0.94 | 145.57 ▼9.29 |
Add New Post /wp-admin/post-new.php | 1,668 ▼91 | 18.22 ▼3.12 | 386.54 ▼75.09 | 173.38 ▲15.87 |
Media Library /wp-admin/upload.php | 1,695 ▼0 | 5.50 ▼0.05 | 135.68 ▼34.44 | 182.30 ▼13.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5600
WP_User->id was called with an argument that is deprecated since version 2.1.0! Use WP_User->ID instead.
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/segmentlab-extension/images/index.php
- > /wp-content/plugins/segmentlab-extension/index.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Parse error
syntax error, unexpected 'default' (T_DEFAULT) in wp-content/plugins/segmentlab-extension/segment-lab-extension.php on line 2742
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Screenshot #3 (SegmentLab statistics) image required
segmentlab-extension/segment-lab-extension.php 69% from 13 tests
The entry point to "SegmentLab Extension" version 1.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- 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 228 characters long)
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("segmentlab-extension.php" instead of "segment-lab-extension.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,343 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 344 | 200 | 4,279 |
JavaScript | 1 | 9 | 1 | 61 |
CSS | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 53.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/segmentlab_icon.png | 6.61KB | 2.97KB | ▼ 55.06% |
images/arrow_up.png | 0.79KB | 0.65KB | ▼ 17.99% |
images/logotestbeta.png | 28.68KB | 5.59KB | ▼ 80.52% |
images/help_icon.png | 1.54KB | 0.68KB | ▼ 56.13% |
images/arrow_down.png | 0.83KB | 0.63KB | ▼ 23.58% |