Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.57ms] Passed 4 tests
This is a short check of server-side resources used by Custom Post Type Rewrite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.71 ▲1.37 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.51 ▼1.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.44 ▼5.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.97 ▼8.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.95 ▲3.10 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Post Type Rewrite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.34 ▼0.03 | 1.66 ▼0.71 | 43.86 ▼1.61 |
Dashboard /wp-admin | 2,198 ▲27 | 5.57 ▼0.08 | 88.51 ▼11.75 | 37.41 ▼8.73 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▼0.03 | 33.04 ▼4.02 | 36.57 ▲2.08 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 24.74 ▲1.01 | 694.47 ▲8.55 | 67.38 ▼10.12 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▼0.07 | 98.33 ▼19.42 | 42.29 ▼6.10 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: permalinks, custom post type, permalink, permalink structure
custom-post-type-rewrite/custom-post-type-rewrite.php 92% from 13 tests
Analyzing the main PHP file in "Custom Post Type Rewrite" version 1.2.1
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
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
Everything looks great! No dangerous files found in this plugin86 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 24 | 44 | 86 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 6.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin