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 gracefully, with no errors
Server metrics [RAM: ▼1.08MB] [CPU: ▼295.28ms] Passed 4 tests
This is a short check of server-side resources used by Align Text Edge
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.52 ▼0.31 | 16.75 ▼16.48 |
Dashboard /wp-admin | 2.57 ▼0.48 | 14.89 ▼26.55 |
Posts /wp-admin/edit.php | 2.57 ▼0.53 | 15.40 ▼28.54 |
Add New Post /wp-admin/post-new.php | 2.57 ▼2.86 | 16.40 ▼1,104.30 |
Media Library /wp-admin/upload.php | 2.57 ▼0.44 | 15.79 ▼21.72 |
Align Text Edge /wp-admin/options-general.php?page=align_text_edge | 2.57 | 19.13 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Align Text Edge
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,766 ▲161 | 16.62 ▲1.12 | 12.49 ▲3.21 | 50.82 ▲3.39 |
Dashboard /wp-admin | 2,940 ▲87 | 6.10 ▲0.23 | 132.02 ▼2.31 | 94.21 ▼5.64 |
Posts /wp-admin/edit.php | 2,713 ▲7 | 2.70 ▲0.01 | 63.97 ▼0.14 | 93.85 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,593 ▼260 | 21.69 ▲2.58 | 258.96 ▼117.70 | 100.97 ▼6.71 |
Media Library /wp-admin/upload.php | 1,776 ▲4 | 5.03 ▲0.00 | 138.37 ▼19.77 | 101.54 ▼6.55 |
Align Text Edge /wp-admin/options-general.php?page=align_text_edge | 1,138 | 2.09 | 54.33 | 76.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/align-text-edge/align-text-edge.php+81
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=align_text_edge
- > Notice in wp-content/plugins/align-text-edge/align-text-edge.php+403
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/align-text-edge/align-text-edge.php:72
- > PHP Fatal error
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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Donate link: Invalid url: ""
- Screenshots: Add descriptions for screenshots #5, #6 in align-text-edge/assets to your readme.txt
align-text-edge/align-text-edge.php Passed 13 tests
This is the main PHP file of "Align Text Edge" version 0.9.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Align heading text and description text by transparent image.
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
There were no executable files found in this plugin505 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 76 | 159 | 353 |
JavaScript | 4 | 16 | 37 | 110 |
PO File | 1 | 15 | 24 | 42 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 53.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
32 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screen_shot/exsample_1_display.png | 18.40KB | 6.45KB | ▼ 64.96% |
images/transparent/transparent_19x1.png | 0.07KB | 0.09KB | 0.00% |
images/transparent/transparent_80x1.png | 0.07KB | 0.09KB | 0.00% |
images/transparent/transparent_50x1.png | 0.07KB | 0.09KB | 0.00% |
images/transparent/transparent_9x1.png | 0.07KB | 0.09KB | 0.00% |