Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼130.77ms] Passed 4 tests
This is a short check of server-side resources used by Redirector
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 45.11 ▲22.03 |
Dashboard /wp-admin | 3.13 ▲0.08 | 56.65 ▲20.53 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 48.68 ▲0.63 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 92.40 ▼553.69 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 43.71 ▲9.47 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Redirector
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.30 ▲0.72 | 10.58 ▼0.57 | 50.39 ▲4.37 |
Dashboard /wp-admin | 2,967 ▲33 | 5.88 ▼0.09 | 151.12 ▲0.16 | 131.01 ▲18.28 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 70.38 ▼0.85 | 99.72 ▼3.72 |
Add New Post /wp-admin/post-new.php | 1,681 ▼2 | 18.37 ▼0.30 | 438.16 ▲44.05 | 132.82 ▲15.19 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.03 | 180.04 ▲36.49 | 145.48 ▲27.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Meta box - No redirection), #2 (Meta box - Select post ( any post type )), #3 (Modal box - Select post ( any post type ) with most recent posts), #4 (Modal box - Search post ( any post type )), #5 (Meta box - Selected post ( any post type )), #6 (Meta box - Custom URL), #7 (Meta box - First child element), #8 (Meta box - SSL)
redirector/redirector.php Passed 13 tests
The primary PHP file in "Redirector" version 3.0.1 is used by WordPress to initiate all plugin functionality
48 characters long description:
Redirect any page to an internal or external URL
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin656 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 246 | 180 | 372 |
PO File | 3 | 46 | 92 | 149 |
JavaScript | 1 | 57 | 12 | 111 |
CSS | 1 | 6 | 7 | 24 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 3 | 18.75% |
▷ 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 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 2.76KB | 1.70KB | ▼ 38.59% |
screenshot-7.png | 2.93KB | 1.89KB | ▼ 35.47% |
screenshot-3.png | 13.34KB | 10.64KB | ▼ 20.28% |
screenshot-1.png | 2.49KB | 1.46KB | ▼ 41.44% |
screenshot-5.png | 2.99KB | 1.86KB | ▼ 37.81% |