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.03MB] [CPU: ▼2.28ms] Passed 4 tests
A check of server-side resources used by Loft404
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 45.90 ▲4.13 |
Dashboard /wp-admin | 3.34 ▲0.03 | 53.37 ▼3.55 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.55 ▲0.45 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.70 ▼6.37 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.51 ▲0.34 |
Loft404 /wp-admin/options-general.php?page=loft404-settings | 3.24 | 35.09 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
loft404_plugin_version |
Browser metrics Passed 4 tests
Loft404: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.69 ▲0.25 | 1.93 ▲0.21 | 45.34 ▼2.48 |
Dashboard /wp-admin | 2,196 ▲19 | 5.62 ▲0.03 | 91.76 ▼3.83 | 43.16 ▲0.86 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.00 ▼0.01 | 39.26 ▲1.70 | 33.79 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 18.30 ▼5.00 | 653.43 ▼19.14 | 66.25 ▲21.22 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.23 ▲0.08 | 98.34 ▲1.38 | 44.25 ▲2.71 |
Loft404 /wp-admin/options-general.php?page=loft404-settings | 814 | 1.99 | 22.59 | 26.06 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- loft404_plugin_version
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/loft404/class-loft-404-front.php
- > /wp-content/plugins/loft404/loft404.php
- > /wp-content/plugins/loft404/class-loft-404-settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI found ("")
loft404/loft404.php Passed 13 tests
The entry point to "Loft404" version 1.2.2 is a PHP file that has certain tags in its header comment area
60 characters long description:
A toolkit to redirect the default 404 page to a custom page.
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
No dangerous file extensions were detected141 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 11 | 99 | 141 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 4.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 23.53% |
Functions | 2 | |
▷ Named functions | 2 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected