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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼9.15ms] Passed 4 tests
Analyzing server-side resources used by Url Rewrite Analyzer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.79 ▼4.74 |
Dashboard /wp-admin | 3.39 ▲0.08 | 43.84 ▼6.97 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 44.22 ▼4.27 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 80.78 ▼20.62 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.29 ▼0.27 |
Url Rewrite Analyzer /wp-admin/tools.php?page=url-rewrite-analyzer | 3.59 | 37.46 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Url Rewrite Analyzer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.24 ▼1.41 | 1.66 ▼0.17 | 46.76 ▲2.97 |
Dashboard /wp-admin | 2,214 ▲23 | 5.84 ▲0.96 | 101.04 ▼8.54 | 56.97 ▲10.27 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.03 ▲0.03 | 35.97 ▼0.11 | 54.20 ▲18.46 |
Add New Post /wp-admin/post-new.php | 1,524 ▲5 | 23.23 ▲0.04 | 595.46 ▼84.76 | 73.95 ▲18.02 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.22 ▲0.08 | 96.52 ▼15.05 | 64.98 ▲16.31 |
Url Rewrite Analyzer /wp-admin/tools.php?page=url-rewrite-analyzer | 6,054 | 2.58 | 33.96 | 120.73 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/url-rewrite-analyzer/url-rewrite-analyzer.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/url-rewrite-analyzer/ui/url-rewrite-analyzer-old.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/url-rewrite-analyzer/ui/url-rewrite-analyzer.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Requires at least: Invalid plugin version format
url-rewrite-analyzer/url-rewrite-analyzer.php 92% from 13 tests
This is the main PHP file of "Url Rewrite Analyzer" version 1.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "5.0 or higher")
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
No dangerous file extensions were detected1,315 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 84 | 61 | 619 |
CSS | 1 | 8 | 0 | 486 |
JavaScript | 1 | 17 | 18 | 126 |
PO File | 1 | 31 | 67 | 84 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 5 | 18.52% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
There are no PNG files in this plugin