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: ▲0.02MB] [CPU: ▼4.10ms] Passed 4 tests
Analyzing server-side resources used by Rebrandly Redirect
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.76 ▼4.22 |
Dashboard /wp-admin | 3.33 ▲0.02 | 50.11 ▼0.43 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.29 ▼0.64 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 88.64 ▼11.12 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.94 ▲1.15 |
Rebrandly /wp-admin/options-general.php?page=rebrandly-domain-redirect | 3.24 | 33.05 |
Server storage [IO: ▲8.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Rebrandly Redirect
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲170 | 13.93 ▼0.45 | 8.89 ▲7.14 | 40.40 ▼7.58 |
Dashboard /wp-admin | 2,229 ▲26 | 4.88 ▼0.05 | 112.86 ▲3.55 | 44.30 ▲3.57 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 2.01 ▼0.03 | 37.49 ▼6.31 | 34.58 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,536 ▼11 | 23.20 ▲0.21 | 603.51 ▼77.64 | 44.68 ▲1.39 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.15 ▲0.07 | 113.99 ▼4.45 | 48.08 ▼3.57 |
Rebrandly /wp-admin/options-general.php?page=rebrandly-domain-redirect | 796 | 2.05 | 24.31 | 25.99 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=rebrandly-domain-redirect
- > Notice in wp-content/plugins/rebrandly-domain-redirect/admin/partials/alias-field.php+12
Trying to access array offset on value of type bool
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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 url: ""
rebrandly-domain-redirect/rebrandly-domain-redirect.php Passed 13 tests
This is the main PHP file of "Rebrandly Redirect" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
104 characters long description:
Connect your WordPress application with Rebrandly and create branded links re-using the same domain name
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
Everything looks great! No dangerous files found in this plugin270 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 126 | 515 | 246 |
Markdown | 1 | 6 | 0 | 15 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 1 | 8 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 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
4 PNG files occupy 0.45MB with 0.33MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 186.51KB | 45.70KB | ▼ 75.50% |
assets/screenshot-5.png | 180.82KB | 44.24KB | ▼ 75.53% |
assets/screenshot-4.png | 39.01KB | 10.59KB | ▼ 72.84% |
assets/screenshot-3.png | 53.06KB | 16.69KB | ▼ 68.56% |