Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼5.39ms] Passed 4 tests
An overview of server-side resources used by Custom Permalinks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 45.50 ▲4.97 |
Dashboard /wp-admin | 3.76 ▲0.41 | 51.76 ▼12.69 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 48.51 ▲1.20 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 82.32 ▼12.29 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 37.95 ▲2.24 |
Taxonomies Permalinks /wp-admin/admin.php?page=cp-taxonomy-permalinks | 3.60 | 30.59 |
About /wp-admin/admin.php?page=cp-about-plugins | 3.64 | 32.33 |
Post Types Permalinks /wp-admin/admin.php?page=cp-post-permalinks | 3.60 | 50.12 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
custom_permalinks_plugin_version |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Permalinks
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.41 ▲0.21 | 1.75 ▲0.02 | 45.50 ▼2.15 |
Dashboard /wp-admin | 2,223 ▲46 | 5.61 ▼0.05 | 104.73 ▲2.47 | 43.14 ▲0.19 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.95 ▼0.07 | 34.60 ▼1.83 | 33.48 ▼3.00 |
Add New Post /wp-admin/post-new.php | 6,275 ▲4,747 | 26.22 ▲2.85 | 916.93 ▲250.49 | 49.55 ▼0.80 |
Media Library /wp-admin/upload.php | 1,434 ▲31 | 4.19 ▲0.01 | 100.06 ▼12.82 | 43.78 ▼5.51 |
Taxonomies Permalinks /wp-admin/admin.php?page=cp-taxonomy-permalinks | 963 | 1.65 | 25.68 | 23.41 |
About /wp-admin/admin.php?page=cp-about-plugins | 2,194 | 1.99 | 22.49 | 46.82 |
Post Types Permalinks /wp-admin/admin.php?page=cp-post-permalinks | 1,060 | 2.04 | 37.64 | 42.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- custom_permalinks_plugin_version
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests Passed 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 no errors were found, this is by no means an exhaustive test
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: gdpr compliant, gdpr, link, address, custom...
custom-permalinks/custom-permalinks.php Passed 13 tests
"Custom Permalinks" version 2.5.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
Set custom permalinks on a per-post basis.
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 plugin11,064 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 9 | 1 | 1 | 8,119 |
PHP | 12 | 471 | 1,175 | 2,619 |
PO File | 6 | 132 | 212 | 324 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 39.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 129.00 |
Average method complexity | 4.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 4 | 44.44% |
Methods | 93 | |
▷ Static methods | 11 | 11.83% |
▷ Public methods | 66 | 70.97% |
▷ Protected methods | 12 | 12.90% |
▷ Private methods | 15 | 16.13% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/media-post-permalink.png | 24.03KB | 11.56KB | ▼ 51.92% |
assets/images/prevent-xss-vulnerability.png | 7.36KB | 7.25KB | ▼ 1.51% |