Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.10MB] [CPU: ▼304.83ms] Passed 4 tests
Server-side resources used by if link is 404(broken), then set to private.
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.18 | 56.46 ▲4.36 |
Dashboard /wp-admin | 3.55 ▲0.14 | 35.13 ▲2.53 |
Posts /wp-admin/edit.php | 3.78 ▲0.13 | 38.02 ▲0.91 |
Add New Post /wp-admin/post-new.php | 6.17 ▼0.80 | 85.86 ▼1,223.74 |
Media Library /wp-admin/upload.php | 3.43 ▲0.13 | 26.30 ▲0.97 |
if link 404 /wp-admin/options-general.php?page=iflink404 | 3.37 | 23.45 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
if link is 404(broken), then set to private.: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,948 ▲194 | 16.35 ▲0.68 | 9.58 ▲3.54 | 2.22 ▼0.42 |
Dashboard /wp-admin | 2,946 ▲85 | 6.15 ▼0.00 | 126.06 ▼10.39 | 158.44 ▼6.20 |
Posts /wp-admin/edit.php | 2,700 ▲9 | 3.23 ▼0.01 | 65.27 ▲0.56 | 136.55 ▼9.91 |
Add New Post /wp-admin/post-new.php | 1,779 ▲118 | 17.26 ▼0.70 | 425.84 ▲37.17 | 181.34 ▲20.58 |
Media Library /wp-admin/upload.php | 1,708 ▲10 | 5.55 ▲0.01 | 138.15 ▼8.78 | 187.40 ▼3.09 |
if link 404 /wp-admin/options-general.php?page=iflink404 | 1,081 | 2.41 | 54.57 | 121.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=iflink404
- > Notice in wp-content/plugins/if-link-is-404broken-then-set-to-private/admin/class-iflink404-admin.php+393
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/if-link-is-404broken-then-set-to-private/admin/partials/iflink404-admin-display.php
- > /wp-content/plugins/if-link-is-404broken-then-set-to-private/public/partials/iflink404-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: link check, if link is 404, link broken
if-link-is-404broken-then-set-to-private/iflink404.php 85% from 13 tests
The main PHP file in "if link is 404(broken), then set to private." ver. 1.0.2.20170918 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("if-link-is-404broken-then-set-to-private.php" instead of "iflink404.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin595 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 193 | 597 | 577 |
CSS | 2 | 2 | 8 | 12 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 10.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 3 | 7.89% |
▷ Public methods | 31 | 81.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 18.42% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin