Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲1.84MB] [CPU: ▼289.96ms] Passed 4 tests
Analyzing server-side resources used by Contempo Real Estate Custom Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.06 ▲1.54 | 58.55 ▲8.71 |
Dashboard /wp-admin | 5.33 ▲1.92 | 47.88 ▲9.75 |
Posts /wp-admin/edit.php | 5.59 ▲1.95 | 51.10 ▲11.09 |
Add New Post /wp-admin/post-new.php | 9.00 ▲2.03 | 102.00 ▼1,188.78 |
Media Library /wp-admin/upload.php | 5.26 ▲1.96 | 35.53 ▲10.50 |
Zipcode /wp-admin/edit-tags.php?taxonomy=zipcode&post_type=listings | 5.41 | 37.19 |
Add New /wp-admin/post-new.php?post_type=testimonial | 5.65 | 59.36 |
Listings /wp-admin/edit.php?post_type=listings | 5.33 | 40.12 |
County /wp-admin/edit-tags.php?taxonomy=county&post_type=listings | 5.41 | 36.08 |
Country /wp-admin/edit-tags.php?taxonomy=country&post_type=listings | 5.41 | 38.16 |
Additional Features /wp-admin/edit-tags.php?taxonomy=additional_features&post_type=listings | 5.41 | 36.99 |
Testimonials /wp-admin/edit.php?post_type=testimonial | 5.34 | 38.29 |
City /wp-admin/edit-tags.php?taxonomy=city&post_type=listings | 5.41 | 37.27 |
Brokerages /wp-admin/edit.php?post_type=brokerage | 5.34 | 38.38 |
State /wp-admin/edit-tags.php?taxonomy=state&post_type=listings | 5.41 | 37.68 |
Server storage [IO: ▲11.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 571 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Contempo Real Estate Custom Posts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,260 ▲534 | 18.08 ▲2.39 | 6.69 ▲0.60 | 2.47 ▼0.29 |
Dashboard /wp-admin | 3,347 ▲493 | 8.10 ▲1.90 | 141.00 ▲7.60 | 203.67 ▲43.72 |
Posts /wp-admin/edit.php | 3,174 ▲483 | 4.80 ▲1.56 | 86.08 ▲22.81 | 174.34 ▲31.12 |
Add New Post /wp-admin/post-new.php | 2,401 ▲649 | 23.64 ▲2.57 | 431.32 ▼22.51 | 240.36 ▲82.77 |
Media Library /wp-admin/upload.php | 1,959 ▲261 | 5.73 ▲0.19 | 114.05 ▼31.67 | 227.47 ▲45.15 |
Zipcode /wp-admin/edit-tags.php?taxonomy=zipcode&post_type=listings | 2,074 | 5.12 | 82.39 | 164.65 |
Add New /wp-admin/post-new.php?post_type=testimonial | 3,497 | 10.07 | 213.04 | 255.17 |
Listings /wp-admin/edit.php?post_type=listings | 1,953 | 4.77 | 79.04 | 144.49 |
County /wp-admin/edit-tags.php?taxonomy=county&post_type=listings | 2,079 | 5.01 | 80.79 | 151.96 |
Country /wp-admin/edit-tags.php?taxonomy=country&post_type=listings | 2,078 | 5.11 | 77.72 | 145.92 |
Additional Features /wp-admin/edit-tags.php?taxonomy=additional_features&post_type=listings | 2,079 | 4.95 | 87.37 | 155.01 |
Testimonials /wp-admin/edit.php?post_type=testimonial | 1,927 | 5.24 | 77.49 | 150.51 |
City /wp-admin/edit-tags.php?taxonomy=city&post_type=listings | 2,073 | 5.07 | 74.70 | 150.66 |
Brokerages /wp-admin/edit.php?post_type=brokerage | 1,890 | 5.36 | 80.90 | 157.69 |
State /wp-admin/edit-tags.php?taxonomy=state&post_type=listings | 2,074 | 5.11 | 77.07 | 144.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 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 50% from 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
Please fix the following items
- 72× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/contempo-real-estate-custom-posts/includes/metabox/init.php:41
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/contempo-real-estate-custom-posts/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/contempo-real-estate-custom-posts/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/contempo-real-estate-custom-posts/includes/widgets/ct-widget-listings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/contempo-real-estate-custom-posts/includes/ct-real-estate-custom-shortcodes.php:794
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/contempo-real-estate-custom-posts/cmb2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/contempo-real-estate-custom-posts/includes/widgets/ct-widget-agentinfo.php:10
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/contempo-real-estate-custom-posts/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/contempo-real-estate-custom-posts/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/contempo-real-estate-custom-posts/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI found ("")
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
contempo-real-estate-custom-posts/ct-real-estate-custom-posts.php 85% from 13 tests
The main PHP file in "Contempo Real Estate Custom Posts" ver. 3.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("contempo-real-estate-custom-posts.php" instead of "ct-real-estate-custom-posts.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected141,428 lines of code in 359 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 161 | 43,570 | 85,828 | 95,359 |
PHP | 149 | 6,442 | 11,827 | 33,557 |
CSS | 17 | 1,245 | 1,271 | 6,890 |
JavaScript | 14 | 685 | 953 | 3,826 |
Sass | 16 | 300 | 25 | 1,379 |
SVG | 1 | 0 | 0 | 399 |
XML | 1 | 0 | 0 | 18 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 164)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 24.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 164.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 142 | |
▷ Abstract classes | 8 | 5.63% |
▷ Concrete classes | 134 | 94.37% |
▷ Final classes | 2 | 1.49% |
Methods | 1,035 | |
▷ Static methods | 131 | 12.66% |
▷ Public methods | 844 | 81.55% |
▷ Protected methods | 185 | 17.87% |
▷ Private methods | 6 | 0.58% |
Functions | 140 | |
▷ Named functions | 140 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 4 | 22.22% |
▷ Class constants | 14 | 77.78% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
28 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/metabox/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
includes/metabox/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
includes/metabox/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |