Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.24ms] Passed 4 tests
Analyzing server-side resources used by Mobile Redirect With Slug
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 37.61 ▲0.21 |
Dashboard /wp-admin | 3.39 ▲0.09 | 47.11 ▼6.34 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.53 ▼0.72 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.80 ▲4.58 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 34.99 ▲1.91 |
Mobile Redirect /wp-admin/options-general.php?page=mobile-redirect-with-slug | 3.28 | 32.49 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mobile Redirect With Slug
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.31 ▼1.07 | 5.19 ▲3.61 | 40.13 ▲2.45 |
Dashboard /wp-admin | 2,210 ▲19 | 4.88 ▼0.20 | 97.53 ▼4.07 | 39.25 ▼6.75 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.15 | 40.08 ▼0.66 | 49.35 ▲10.51 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.18 ▼0.25 | 643.55 ▲11.70 | 56.75 ▲3.82 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.18 ▲0.02 | 96.31 ▼5.30 | 40.83 ▼3.25 |
Mobile Redirect /wp-admin/options-general.php?page=mobile-redirect-with-slug | 813 | 2.03 | 24.16 | 30.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mobile-redirect-with-slug/admin/partials/mrws-admin-display.php
- > /wp-content/plugins/mobile-redirect-with-slug/public/partials/mrws-public-display.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mobile-redirect-with-slug/mobile-redirect-with-slug.php:3
- > PHP Fatal error
Uncaught Error: Class 'MRWS_Common' not found in wp-content/plugins/mobile-redirect-with-slug/admin/class-mrws-admin.php:23
- > PHP Fatal error
Uncaught Error: Class 'MRWS_Common' not found in wp-content/plugins/mobile-redirect-with-slug/public/class-mrws-public.php:23
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Example 1 (screenshot-1.jpg)), #2 (Example 2 (screenshot-2.jpg))
- Donate link: Invalid URI found ("")
mobile-redirect-with-slug/mobile-redirect-with-slug.php 92% from 13 tests
The principal PHP file in "Mobile Redirect With Slug" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin520 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 157 | 649 | 476 |
JSON | 1 | 0 | 0 | 23 |
JavaScript | 3 | 7 | 54 | 21 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 2 | 4.26% |
▷ Public methods | 30 | 63.83% |
▷ Protected methods | 11 | 23.40% |
▷ Private methods | 6 | 12.77% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin