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
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼1.30ms] Passed 4 tests
A check of server-side resources used by Custom Post Type Permalinks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 38.18 ▼2.10 |
Dashboard /wp-admin | 3.60 ▲0.30 | 45.86 ▼2.80 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 48.09 ▲1.94 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 92.02 ▼2.25 |
Media Library /wp-admin/upload.php | 3.46 ▲0.24 | 37.16 ▲5.55 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 10 new options
New WordPress options |
---|
add_post_type_for_tax |
widget_theysaidso_widget |
can_compress_scripts |
no_taxonomy_structure |
cptp_version |
widget_recent-posts |
queue_flush_rules |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Custom Post Type Permalinks: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲118 | 13.34 ▼1.06 | 1.78 ▲0.04 | 43.07 ▲0.94 |
Dashboard /wp-admin | 2,259 ▲71 | 5.06 ▲0.16 | 114.87 ▼2.34 | 43.62 ▲0.12 |
Posts /wp-admin/edit.php | 2,141 ▲49 | 2.31 ▲0.30 | 44.54 ▲2.17 | 34.27 ▼4.25 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.48 ▼4.75 | 587.81 ▼61.14 | 34.58 ▼18.42 |
Media Library /wp-admin/upload.php | 1,448 ▲60 | 4.36 ▲0.17 | 96.67 ▼13.25 | 42.50 ▼4.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- add_post_type_for_tax
- db_upgraded
- cptp_version
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'CPTP_Module' not found in wp-content/plugins/custom-post-type-permalinks/CPTP/Module/Admin.php:14
- > PHP Fatal error
Uncaught Error: Class 'CPTP_Module' not found in wp-content/plugins/custom-post-type-permalinks/CPTP/Module/Permalink.php:13
- > PHP Fatal error
Uncaught Error: Class 'CPTP_Module' not found in wp-content/plugins/custom-post-type-permalinks/CPTP/Module/Rewrite.php:14
- > PHP Fatal error
Uncaught Error: Class 'CPTP_Module' not found in wp-content/plugins/custom-post-type-permalinks/CPTP/Module/GetArchives.php:14
- > PHP Fatal error
Uncaught Error: Class 'CPTP_Module' not found in wp-content/plugins/custom-post-type-permalinks/CPTP/Module/FlushRules.php:14
- > PHP Fatal error
Uncaught Error: Class 'CPTP_Module' not found in wp-content/plugins/custom-post-type-permalinks/CPTP/Module/Option.php:15
- > PHP Fatal error
Uncaught Error: Class 'CPTP_Module' not found in wp-content/plugins/custom-post-type-permalinks/CPTP/Module/Setting.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/custom-post-type-permalinks/custom-post-type-permalinks.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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
5 plugin tags: link, url, permalink, address, custom post type
custom-post-type-permalinks/custom-post-type-permalinks.php 85% from 13 tests
The main file in "Custom Post Type Permalinks" v. 3.5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Requires PHP: The required version number must match the one declared in readme.txt ("7.4" instead of "5.6")
- Requires at least: The required version number must match the one declared in readme.txt ("6.1" instead of "5.2")
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
There were no executable files found in this plugin1,455 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 259 | 623 | 1,066 |
PO File | 3 | 46 | 72 | 204 |
YAML | 2 | 17 | 0 | 112 |
XML | 1 | 1 | 9 | 38 |
Markdown | 1 | 5 | 0 | 19 |
JavaScript | 1 | 5 | 0 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 18.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 20 | 31.75% |
▷ Public methods | 56 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 11.11% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
1 compressed PNG file occupies 0.07MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 75.79KB | 75.08KB | ▼ 0.95% |