Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼2.44ms] Passed 4 tests
Server-side resources used by Listings Post Type Enable
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 36.56 ▼3.05 |
Dashboard /wp-admin | 3.43 ▲0.13 | 47.37 ▲0.60 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 45.94 ▼0.59 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 86.54 ▼6.72 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.19 ▲4.19 |
Listing Categories /wp-admin/edit-tags.php?taxonomy=listing-category&post_type=listing | 3.35 | 34.15 |
Add New /wp-admin/post-new.php?post_type=listing | 3.51 | 54.37 |
Listing Tags /wp-admin/edit-tags.php?taxonomy=listing-tag&post_type=listing | 3.35 | 35.33 |
All Listings /wp-admin/edit.php?post_type=listing | 3.40 | 34.65 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_ketchupthemes-recent-topics |
widget_recent-comments |
widget_recent-posts |
widget_directory_listings_category_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Listings Post Type Enable
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.24 ▼1.14 | 4.49 ▲2.76 | 41.28 ▲0.65 |
Dashboard /wp-admin | 2,238 ▲49 | 4.86 ▼1.01 | 109.65 ▼4.98 | 39.74 ▲0.49 |
Posts /wp-admin/edit.php | 2,127 ▲41 | 2.00 ▼0.05 | 38.37 ▲1.55 | 37.10 ▲5.76 |
Add New Post /wp-admin/post-new.php | 1,563 ▲43 | 23.31 ▲0.00 | 658.98 ▲15.28 | 50.62 ▼12.83 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.38 ▲0.22 | 95.34 ▼2.06 | 41.59 ▼5.32 |
Listing Categories /wp-admin/edit-tags.php?taxonomy=listing-category&post_type=listing | 1,294 | 2.14 | 26.01 | 27.38 |
Add New /wp-admin/post-new.php?post_type=listing | 3,050 | 8.02 | 188.20 | 76.61 |
Listing Tags /wp-admin/edit-tags.php?taxonomy=listing-tag&post_type=listing | 1,266 | 2.14 | 27.02 | 26.36 |
All Listings /wp-admin/edit.php?post_type=listing | 1,152 | 1.94 | 31.21 | 29.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- widget_ketchupthemes-recent-topics
- widget_directory_listings_category_widget
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/listings-post-type-enable/listings.php:9
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: directory post type, listings post type, custom widget, custom post type
listings-post-type-enable/listings.php 85% from 13 tests
The main file in "Listings Post Type Enable" v. 0.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 222 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("listings-post-type-enable.php" instead of "listings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin335 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 82 | 21 | 316 |
Markdown | 1 | 12 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin