Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.00MB] [CPU: ▲30.01ms] 75% from 4 tests
Server-side resources used by Premmerce Redirect Manager
Please take the time to fix the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 1,709.27ms on /wp-admin/admin.php?page=premmerce-redirect-manager)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.84 ▲5.38 | 61.41 ▲23.27 |
Dashboard /wp-admin | 8.86 ▲5.56 | 70.55 ▲29.26 |
Posts /wp-admin/edit.php | 8.86 ▲5.51 | 81.00 ▲37.54 |
Add New Post /wp-admin/post-new.php | 9.43 ▲3.54 | 120.96 ▲30.39 |
Media Library /wp-admin/upload.php | 8.86 ▲5.63 | 73.68 ▲37.10 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.86 | 56.68 |
Redirects /wp-admin/admin.php?page=premmerce_redirect | 8.86 | 61.08 |
Premmerce Redirect Manager /wp-admin/admin.php?page=premmerce-redirect-manager | 8.86 | 1,709.27 |
Server storage [IO: ▲3.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 222 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_premmerce_redirects |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
fs_debug_mode |
fs_accounts |
db_upgraded |
fs_active_plugins |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Premmerce Redirect Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.23 ▼0.97 | 1.85 ▲0.13 | 27.68 ▼9.97 |
Dashboard /wp-admin | 2,272 ▲86 | 5.86 ▲0.91 | 107.86 ▼13.11 | 42.54 ▼3.17 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 2.05 ▲0.04 | 41.58 ▲4.45 | 38.50 ▲5.07 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 18.30 ▼0.14 | 640.64 ▼9.42 | 57.42 ▲1.66 |
Media Library /wp-admin/upload.php | 1,450 ▲65 | 4.22 ▲0.01 | 101.41 ▲3.22 | 47.05 ▲3.64 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,112 | 1.70 | 30.38 | 30.89 |
Redirects /wp-admin/admin.php?page=premmerce_redirect | 1,396 | 2.35 | 40.96 | 33.67 |
Premmerce Redirect Manager /wp-admin/admin.php?page=premmerce-redirect-manager | 1,017 | 1.71 | 27.82 | 55.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/premmerce-redirect-manager/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie tables detected upon uninstall: 1 table
- wp_premmerce_redirects
- Zombie WordPress options detected upon uninstall: 9 options
- widget_theysaidso_widget
- fs_debug_mode
- widget_recent-comments
- fs_active_plugins
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- fs_accounts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/premmerce-redirect-manager/src/Admin/RedirectsTable.php:12
- > 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 Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: 301 redirects manager, woocommerce redirect manager, wordpress redirect manager
premmerce-redirect-manager/premmerce-redirect.php 77% from 13 tests
The entry point to "Premmerce Redirect Manager" version 1.0.12 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("premmerce-redirect-manager.php" instead of "premmerce-redirect.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin35,832 lines of code in 171 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 145 | 8,428 | 17,949 | 34,834 |
JavaScript | 5 | 47 | 59 | 352 |
Markdown | 2 | 121 | 0 | 284 |
PO File | 2 | 114 | 198 | 250 |
JSON | 2 | 0 | 0 | 64 |
CSS | 15 | 7 | 0 | 48 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 79.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,374 | |
▷ Static methods | 219 | 15.94% |
▷ Public methods | 958 | 69.72% |
▷ Protected methods | 24 | 1.75% |
▷ Private methods | 392 | 28.53% |
Functions | 103 | |
▷ Named functions | 99 | 96.12% |
▷ Anonymous functions | 4 | 3.88% |
Constants | 150 | |
▷ Global constants | 98 | 65.33% |
▷ Class constants | 52 | 34.67% |
▷ Public constants | 52 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/premmerce-redirect-manager.png | 5.82KB | 3.21KB | ▼ 44.87% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |