Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.70ms] Passed 4 tests
Server-side resources used by Collection
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.69 ▲0.27 |
Dashboard /wp-admin | 3.35 ▲0.00 | 46.63 ▼14.46 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.08 ▼0.83 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 80.39 ▼14.49 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.20 ▼1.03 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 17 new options
New WordPress options |
---|
slwsu_collection_flush_rewrite |
db_upgraded |
slwsu_collection_post_type_deregister |
slwsu_collection_delete_options |
slwsu_collection_metaboxs |
slwsu_collection_post_types |
widget_recent-posts |
widget_recent-comments |
slwsu_collection_post_type_supports |
slwsu_collection_add_body_class |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Collection
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲42 | 14.30 ▼0.33 | 1.81 ▼0.02 | 45.60 ▲2.47 |
Dashboard /wp-admin | 2,214 ▲46 | 5.58 ▼0.00 | 84.15 ▼4.46 | 38.22 ▼5.20 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.00 ▲0.05 | 35.48 ▼0.29 | 35.04 ▼0.08 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.09 ▲0.03 | 657.53 ▲4.72 | 52.11 ▲5.72 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.22 ▼0.00 | 94.26 ▼17.22 | 48.53 ▲0.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (Add a collection), #2 (Your collection is created), #3 (Add metabox), #4 (Configure the position of the metabox), #5 (Add fields to the metabox), #6 (You have a new type of article), #7 (Add a new article), #8 (Fill in the fields of the article correctly), #9 (Fill in the metabox fields), #10 (You can see a normal item), #11 (The plugin generates the shortcode created by the metabox), #12 (Add the shortcode for a specific field), #13 (The value is injected into the article), #14 (Add a shortcode for a list or for all the fields), #15 (View the article, the list is generated in a html table)
collection/collection.php 92% from 13 tests
The principal PHP file in "Collection" v. 0.5 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,856 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 282 | 319 | 1,455 |
PO File | 1 | 106 | 120 | 236 |
CSS | 1 | 20 | 0 | 165 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 17 | 20.48% |
▷ Public methods | 73 | 87.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 12.05% |
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