Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.34MB] [CPU: ▼267.84ms] Passed 4 tests
An overview of server-side resources used by WP Alternative Slug by 010Pixel
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 31.43 ▲5.32 |
Dashboard /wp-admin | 3.07 ▲0.02 | 44.30 ▲1.21 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 47.22 ▲4.57 |
Add New Post /wp-admin/post-new.php | 4.05 ▼1.38 | 47.43 ▼1,066.56 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 28.30 ▼10.57 |
Alternative Slug Metabox /wp-admin/options-general.php?page=010pixel_alternative_slug | 2.96 | 27.76 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
alternative_slug_post_type_list |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Alternative Slug by 010Pixel
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,654 ▲48 | 15.80 ▲0.20 | 7.18 ▼1.04 | 48.02 ▼0.21 |
Dashboard /wp-admin | 2,935 ▲82 | 5.94 ▲0.14 | 132.47 ▼0.56 | 115.03 ▲24.82 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▼0.00 | 65.49 ▼11.68 | 88.27 ▼9.38 |
Add New Post /wp-admin/post-new.php | 3,710 ▲2,057 | 15.03 ▼3.72 | 410.44 ▲41.75 | 108.63 ▲6.03 |
Media Library /wp-admin/upload.php | 1,780 ▲11 | 5.01 ▼0.03 | 153.76 ▼0.49 | 107.24 ▼4.99 |
Alternative Slug Metabox /wp-admin/options-general.php?page=010pixel_alternative_slug | 1,011 | 2.09 | 55.40 | 73.73 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- alternative_slug_post_type_list
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
- > GET request to /wp-admin/options-general.php?page=010pixel_alternative_slug
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=010pixel_alternative_slug
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-alternative-slug-by-010pixel/010pixel-wp-alternative-slug.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (Settings in WordPress to choose Custom Post Types), #2 (Sample Alternative Slug Metabox)
wp-alternative-slug-by-010pixel/010pixel-wp-alternative-slug.php 92% from 13 tests
The principal PHP file in "WP Alternative Slug by 010Pixel" v. 1.3.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-alternative-slug-by-010pixel.php" instead of "010pixel-wp-alternative-slug.php")
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
Success! There were no dangerous files found in this plugin192 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 61 | 83 | 192 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 3 | 16.67% |
▷ Private methods | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 50.28KB | 13.53KB | ▼ 73.10% |
screenshot-1.png | 37.39KB | 8.68KB | ▼ 76.77% |