Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/custom-404-error-page-unlimited-designs-colors-and-fonts/custom404.php+20
Use of undefined constant CUSTOM_404_PLUGIN_ROOT - assumed 'CUSTOM_404_PLUGIN_ROOT' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼2.17MB] [CPU: ▼354.62ms] Passed 4 tests
This is a short check of server-side resources used by Custom 404 Error Page: Unilimited designs and colors
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.32 | 5.06 ▼72.27 |
Dashboard /wp-admin | 2.21 ▼1.19 | 4.37 ▼32.78 |
Posts /wp-admin/edit.php | 2.21 ▼1.42 | 5.52 ▼31.38 |
Add New Post /wp-admin/post-new.php | 2.21 ▼4.75 | 5.23 ▼1,282.06 |
Media Library /wp-admin/upload.php | 2.21 ▼1.08 | 5.57 ▼19.76 |
Server storage [IO: ▲2.59MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 169 new files
Database: no new tables, 22 new options
New WordPress options |
---|
custom404_content_title |
custom404_link_href_4 |
custom404_title_font_size |
custom404_link_text_2 |
custom404_title_font |
custom404_link_href_3 |
custom404_link_href_5 |
custom404_link_text_3 |
custom404_link_text_4 |
custom404_text_font_size |
... |
Browser metrics Passed 4 tests
Custom 404 Error Page: Unilimited designs and colors: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 15.57 ▲0.33 | 7.07 ▲1.10 | 2.85 ▲0.30 |
Dashboard /wp-admin | 2,897 ▲40 | 6.06 ▼0.06 | 119.00 ▼10.99 | 214.48 ▲47.12 |
Posts /wp-admin/edit.php | 2,705 ▲11 | 3.12 ▼0.12 | 64.84 ▼3.52 | 141.22 ▼12.82 |
Add New Post /wp-admin/post-new.php | 1,771 ▲60 | 21.46 ▼0.08 | 474.07 ▲16.12 | 224.21 ▲46.31 |
Media Library /wp-admin/upload.php | 1,716 ▲21 | 5.53 ▼0.02 | 142.27 ▲0.38 | 225.69 ▲3.31 |
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
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/custom-404-error-page-unlimited-designs-colors-and-fonts/custom404.php+20
Use of undefined constant CUSTOM_404_PLUGIN_ROOT - assumed 'CUSTOM_404_PLUGIN_ROOT' (this will throw an Error in a future version of PHP)
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/custom-404-error-page-unlimited-designs-colors-and-fonts/custom404.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/custom-404-error-page-unlimited-designs-colors-and-fonts/custom404page.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The 404 fits just right on you layout, so that users still feels at home.), #2 (Customizable 404 message.), #3 (You can change the background color, the pattern that it'll have and also an image that is placed at the right bottom of the page.)
- Donate link: Please fix this invalid url: ""
custom-404-error-page-unlimited-designs-colors-and-fonts/custom404.php 92% from 13 tests
The primary PHP file in "Custom 404 Error Page: Unilimited designs and colors" version 1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("custom-404-error-page-unlimited-designs-colors-and-fonts.php" instead of "custom404.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,142 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 57 | 74 | 1,203 |
PHP | 3 | 42 | 38 | 938 |
CSS | 3 | 1 | 0 | 553 |
PO File | 4 | 196 | 192 | 448 |
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.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
133 PNG files occupy 1.18MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
patterns_thumb/pattern_025.png | 0.76KB | 0.66KB | ▼ 13.18% |
patterns/pattern_014.png | 0.18KB | 0.10KB | ▼ 42.22% |
custom_img/14.png | 27.66KB | 8.92KB | ▼ 67.75% |
custom_img/08.png | 51.23KB | 15.70KB | ▼ 69.36% |
patterns/pattern_007.png | 0.19KB | 0.11KB | ▼ 39.47% |