Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.19MB] [CPU: ▼10.70ms] Passed 4 tests
Analyzing server-side resources used by PASA Link Redirect
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▼0.63 | 15.39 ▼26.57 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.89 ▼2.85 |
Posts /wp-admin/edit.php | 3.18 ▼0.17 | 32.89 ▼13.39 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 96.64 ▲0.01 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 33.02 ▲1.62 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_pasa_link_redirector |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for PASA Link Redirect
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲196 | 13.54 ▼0.83 | 7.78 ▲5.91 | 40.41 ▼4.38 |
Dashboard /wp-admin | 2,229 ▲54 | 4.92 ▼0.04 | 108.74 ▼1.04 | 37.30 ▼2.50 |
Posts /wp-admin/edit.php | 2,115 ▲40 | 2.04 ▲0.07 | 39.23 ▲0.54 | 35.33 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 23.27 ▲5.79 | 667.97 ▲27.23 | 52.73 ▼11.28 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.29 ▲0.13 | 97.62 ▼6.49 | 43.95 ▲2.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_pasa_link_redirector
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pasa-link-redirect/public/partials/pasa-link-redirect-and-manager-public-display.php
- > /wp-content/plugins/pasa-link-redirect/admin/partials/pasa-link-redirect-and-manager-admin-display.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pasa-link-redirect/admin/partials/admin-support-page.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pasa-link-redirect/admin/partials/admin-settings-page.php:1
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== pasa-link-redirect ===
)
pasa-link-redirect/pasa-link-redirect-and-manager.php 85% from 13 tests
The main PHP script in "PASA Link Redirect" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("pasa-link-redirect.php" instead of "pasa-link-redirect-and-manager.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin491 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 173 | 544 | 457 |
JavaScript | 2 | 10 | 27 | 30 |
CSS | 3 | 1 | 14 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 39 | |
▷ Static methods | 1 | 2.56% |
▷ Public methods | 34 | 87.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.82% |
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
No PNG images were found in this plugin