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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼15.85ms] Passed 4 tests
Server-side resources used by Custom Post Types Bubbles
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.11 ▼5.04 |
Dashboard /wp-admin | 3.34 ▲0.04 | 55.76 ▲3.26 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.75 ▼4.35 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.17 ▼57.25 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.84 ▲3.23 |
CPT Bubbles /wp-admin/options-general.php?page=cpt-bubbles | 3.23 | 30.62 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Post Types Bubbles
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.43 ▼1.15 | 1.78 ▼0.35 | 47.76 ▲1.77 |
Dashboard /wp-admin | 2,231 ▲46 | 5.06 ▼0.81 | 103.15 ▼2.35 | 39.85 ▼2.82 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.30 ▲0.28 | 38.59 ▼1.11 | 32.76 ▼3.03 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 23.23 ▲5.71 | 615.66 ▼72.76 | 34.57 ▼19.35 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.41 ▲0.29 | 109.01 ▼7.97 | 42.94 ▼10.34 |
CPT Bubbles /wp-admin/options-general.php?page=cpt-bubbles | 2,467 | 3.17 | 99.46 | 30.32 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/custom-post-types-bubbles/cpt-bubbles.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #2 (Custom Post Types Bubbles)
- Requires at least: The plugin version is formatted incorrectly
custom-post-types-bubbles/cpt-bubbles.php 85% from 13 tests
The primary PHP file in "Custom Post Types Bubbles" version 2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-post-types-bubbles.php" instead of "cpt-bubbles.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected214 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 66 | 15 | 160 |
PO File | 1 | 11 | 11 | 52 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected