Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.49MB] [CPU: ▼3.63ms] Passed 4 tests
An overview of server-side resources used by The Permalinks Cascade
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 44.40 ▲1.39 |
Dashboard /wp-admin | 3.82 ▲0.47 | 50.49 ▼9.98 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 47.73 ▲2.53 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.62 | 83.50 ▼7.02 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 34.54 ▲1.10 |
Dashboard /wp-admin/admin.php?page=tpc-dashboard | 3.97 | 36.63 |
Topics /wp-admin/edit-tags.php?taxonomy=tpc_topic&post_type=page | 3.73 | 34.36 |
Advanced Settings /wp-admin/admin.php?page=tpc-advanced | 3.86 | 34.97 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 82 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
the_permalinks_cascade |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for The Permalinks Cascade
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 13.26 ▼1.11 | 1.77 ▼0.12 | 41.85 ▼8.86 |
Dashboard /wp-admin | 2,263 ▲72 | 5.84 ▼0.06 | 100.10 ▼17.20 | 35.22 ▼7.77 |
Posts /wp-admin/edit.php | 2,189 ▲100 | 2.02 ▲0.03 | 35.40 ▼1.12 | 32.94 ▼1.58 |
Add New Post /wp-admin/post-new.php | 6,244 ▲4,711 | 26.19 ▲2.93 | 885.28 ▲207.33 | 59.07 ▼1.87 |
Media Library /wp-admin/upload.php | 1,445 ▲60 | 4.26 ▲0.06 | 97.61 ▼17.03 | 39.43 ▼9.89 |
Dashboard /wp-admin/admin.php?page=tpc-dashboard | 2,662 | 1.87 | 34.26 | 36.68 |
Topics /wp-admin/edit-tags.php?taxonomy=tpc_topic&post_type=page | 1,293 | 2.14 | 35.61 | 29.34 |
Advanced Settings /wp-admin/admin.php?page=tpc-advanced | 834 | 1.95 | 33.75 | 25.90 |
Uninstaller [IO: ▲1.16MB] [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
These items require your attentionThe uninstall procedure has failed, leaving 8 options in the database
- The plugin did not uninstall gracefully
- > Compile error in wp-content/plugins/the-permalinks-cascade/library/base-plugin.class.php+11
Cannot declare class ThePermalinksCascade\BasePlugin, because the name is already in use
- The plugin did not uninstall successfully, leaving 82 files (1.16MB) in the plugin directory
- (new file) admin/edit-box-controller.class.php
- (new file) admin/admin-controller.class.php
- (new file) admin/page-view-delegate-protocols.php
- (new file) admin/meta-box-controller.class.php
- (new file) admin/field-view.class.php
- (new file) admin/page-controller-classes.php
- (new file) admin/page-view.class.php
- (new file) admin/ping-controller.class.php
- (new file) admin/index.php
- (new file) admin/dashboard-page-view.class.php
- ...
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-posts
- widget_theysaidso_widget
- the_permalinks_cascade
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Please take a closer look at the following
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ThePermalinksCascade\\GoogleSitemapBuilder' not found in wp-content/plugins/the-permalinks-cascade/includes/builders/media-sitemap-builder.class.php:11
- > PHP Fatal error
Uncaught Error: Class 'ThePermalinksCascade\\BuilderCore' not found in wp-content/plugins/the-permalinks-cascade/includes/builders/site-tree-builder.class.php:11
- > PHP Fatal error
Uncaught Error: Class 'ThePermalinksCascade\\PageView' not found in wp-content/plugins/the-permalinks-cascade/admin/dashboard-page-view.class.php:11
- > PHP Fatal error
Uncaught Error: Class 'ThePermalinksCascade\\View' not found in wp-content/plugins/the-permalinks-cascade/admin/page-view.class.php:11
- > PHP Fatal error
Uncaught Error: Class 'ThePermalinksCascade\\GoogleSitemapBuilder' not found in wp-content/plugins/the-permalinks-cascade/includes/builders/sitemap-builder.class.php:11
- > PHP Fatal error
Uncaught Error: Class 'ThePermalinksCascade\\PluginUpgrader' not found in wp-content/plugins/the-permalinks-cascade/includes/upgrader.class.php:11
- > PHP Fatal error
Uncaught Error: Class 'ThePermalinksCascade\\BuilderCore' not found in wp-content/plugins/the-permalinks-cascade/includes/builders/google-sitemap-builder.class.php:11
- > PHP Fatal error
Uncaught Error: Interface 'ThePermalinksCascade\\PageViewDelegateProtocol' not found in wp-content/plugins/the-permalinks-cascade/admin/page-controller-classes.php:11
- > PHP Fatal error
Uncaught Error: Class 'ThePermalinksCascade\\GoogleSitemapBuilder' not found in wp-content/plugins/the-permalinks-cascade/includes/builders/newsmap-builder.class.php:11
- > PHP Fatal error
Uncaught Error: Class 'ThePermalinksCascade\\PluginUpgrader' not found in wp-content/plugins/the-permalinks-cascade/includes/sitetree-migrator.class.php:11
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: blocks, google sitemap, news sitemap, html site map, lists
the-permalinks-cascade/the-permalinks-cascade.php Passed 13 tests
This is the main PHP file of "The Permalinks Cascade" version 2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
33 characters long description:
Sitemaps, Hyper-lists and Beyond.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected10,190 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 2,509 | 4,044 | 8,571 |
JavaScript | 8 | 103 | 30 | 705 |
CSS | 3 | 85 | 16 | 673 |
JSON | 5 | 0 | 0 | 241 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 19.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 7 | 13.73% |
▷ Concrete classes | 44 | 86.27% |
▷ Final classes | 28 | 63.64% |
Methods | 512 | |
▷ Static methods | 8 | 1.56% |
▷ Public methods | 371 | 72.46% |
▷ Protected methods | 45 | 8.79% |
▷ Private methods | 96 | 18.75% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 16 | |
▷ Global constants | 3 | 18.75% |
▷ Class constants | 13 | 81.25% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/thumbnail.png | 11.70KB | 6.48KB | ▼ 44.61% |