Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.56ms] Passed 4 tests
This is a short check of server-side resources used by Simple Post Type Permalinks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 42.34 ▼0.38 |
Dashboard /wp-admin | 3.44 ▲0.13 | 50.92 ▼6.54 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 51.61 ▲10.28 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 99.19 ▼1.04 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 40.02 ▲1.74 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/simple-post-type-permalinks/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
sptp_queue_flush_rewrite_rules |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Post Type Permalinks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲29 | 13.24 ▼1.18 | 1.87 ▼0.29 | 43.35 ▼1.34 |
Dashboard /wp-admin | 2,218 ▲15 | 5.76 ▼0.10 | 101.86 ▼17.87 | 40.97 ▼3.07 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.06 ▲0.01 | 40.96 ▼2.29 | 34.81 ▼4.30 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 23.39 ▲0.17 | 617.30 ▼15.09 | 45.63 ▼2.09 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.25 ▲0.07 | 98.07 ▼40.94 | 45.71 ▼4.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/simple-post-type-permalinks/includes/Module/Rewrite.php+114
array_walk() expects parameter 1 to be array, null given
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SPTP\\Module\\Module' not found in wp-content/plugins/simple-post-type-permalinks/includes/Module/Rewrite.php:13
- > PHP Fatal error
Uncaught Error: Class 'SPTP\\Module\\Module' not found in wp-content/plugins/simple-post-type-permalinks/includes/Module/Permalink.php:13
- > PHP Fatal error
Uncaught Error: Class 'SPTP\\Module\\Module' not found in wp-content/plugins/simple-post-type-permalinks/includes/Module/Flusher.php:12
- > PHP Fatal error
require(): Failed opening required 'SPTP_PATH/includes/Psr4AutoloaderClass.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-post-type-permalinks/includes/SPTP.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'SPTP\\Module\\Module' not found in wp-content/plugins/simple-post-type-permalinks/includes/Module/Admin.php:13
- > PHP Fatal error
Uncaught Error: Class 'SPTP\\Module\\Module' not found in wp-content/plugins/simple-post-type-permalinks/includes/Module/Option.php:13
- > PHP Warning
require(SPTP_PATH/includes/Psr4AutoloaderClass.php): failed to open stream: No such file or directory in wp-content/plugins/simple-post-type-permalinks/includes/SPTP.php on line 5
- > PHP Warning
Use of undefined constant SPTP_PATH - assumed 'SPTP_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-post-type-permalinks/includes/SPTP.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-post-type-permalinks/simple-post-type-permalinks.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: custom post type, cms, permalinks, permalink
simple-post-type-permalinks/simple-post-type-permalinks.php Passed 13 tests
The main PHP script in "Simple Post Type Permalinks" version 2.0.5 is automatically included on every request by WordPress
45 characters long description:
Easy to change Permalink of custom post type.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected715 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 204 | 285 | 570 |
Markdown | 1 | 49 | 0 | 70 |
JavaScript | 1 | 15 | 0 | 47 |
JSON | 1 | 0 | 0 | 15 |
XML | 1 | 1 | 3 | 13 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 2 | 3.70% |
▷ Public methods | 43 | 79.63% |
▷ Protected methods | 2 | 3.70% |
▷ Private methods | 9 | 16.67% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 69.83KB | 15.52KB | ▼ 77.77% |