Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.45ms] Passed 4 tests
Analyzing server-side resources used by Frontype | Select a custom post type as a front page
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.92 ▲3.27 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.33 ▼4.35 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.78 ▼1.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 94.49 ▼0.68 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.27 ▲0.54 |
Reading /wp-admin/options-general.php?page=frontype | 3.26 | 32.59 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Frontype | Select a custom post type as a front page: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.37 | 1.79 ▲0.06 | 45.67 ▲5.90 |
Dashboard /wp-admin | 2,192 ▲15 | 5.67 ▲0.01 | 89.65 ▼9.99 | 39.76 ▼5.67 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.08 | 39.08 ▲2.31 | 35.15 ▼3.90 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.23 ▲0.03 | 660.39 ▼19.63 | 62.24 ▲11.24 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.15 ▼0.04 | 100.53 ▼2.23 | 42.83 ▼3.13 |
Reading /wp-admin/options-general.php?page=frontype | 998 | 2.01 | 26.14 | 31.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=frontype
- > Notice in wp-content/plugins/frontype/admin/frontype-options.php+9
Undefined variable: title
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Donate link: Please fix this invalid url: "buymeacoffee.com/josem"
frontype/frontype.php Passed 13 tests
The main file in "Frontype | Select a custom post type as a front page" v. 0.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
It lets you set a custom post type as a front page
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
Everything looks great! No dangerous files found in this plugin224 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 10 | 24 | 224 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
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
There are no PNG files in this plugin