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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.51MB] [CPU: ▲7.62ms] Passed 4 tests
Analyzing server-side resources used by TerraClassifieds - Simple Classifieds Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 39.93 ▲3.43 |
Dashboard /wp-admin | 3.86 ▲0.56 | 61.87 ▲16.04 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 56.61 ▲8.91 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.58 | 99.01 ▲6.12 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 46.53 ▲12.02 |
Add New /wp-admin/post-new.php?post_type=classified | 4.36 | 72.48 |
Categories /wp-admin/edit-tags.php?taxonomy=ad_category&post_type=classified | 3.89 | 52.45 |
Types /wp-admin/edit-tags.php?taxonomy=ad_type&post_type=classified | 3.84 | 46.28 |
Locations /wp-admin/edit-tags.php?taxonomy=ad_location&post_type=classified | 3.78 | 45.55 |
Settings /wp-admin/edit.php?post_type=classified&page=terraclassifieds_settings | 5.27 | 60.46 |
Ads /wp-admin/edit.php?post_type=classified | 3.80 | 47.01 |
Server storage [IO: ▲9.51MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 799 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_terraclassifiedssearch |
widget_recent-comments |
can_compress_scripts |
widget_terraclassifiedscategories |
widget_recent-posts |
widget_terraclassifiedslatestads |
theysaidso_admin_options |
widget_terraclassifiedsmenu |
db_upgraded |
Browser metrics Passed 4 tests
TerraClassifieds - Simple Classifieds Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,076 ▲319 | 14.42 ▲0.12 | 18.24 ▲16.24 | 39.12 ▼3.00 |
Dashboard /wp-admin | 2,267 ▲79 | 5.11 ▲0.25 | 104.61 ▼18.08 | 92.47 ▲47.98 |
Posts /wp-admin/edit.php | 2,164 ▲72 | 2.31 ▲0.26 | 35.08 ▼4.59 | 34.67 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,573 ▲39 | 17.73 ▼5.37 | 708.86 ▲43.86 | 40.50 ▼15.89 |
Media Library /wp-admin/upload.php | 1,464 ▲76 | 4.51 ▲0.27 | 104.69 ▲5.23 | 47.98 ▲5.44 |
Add New /wp-admin/post-new.php?post_type=classified | 2,863 | 8.32 | 200.07 | 136.08 |
Categories /wp-admin/edit-tags.php?taxonomy=ad_category&post_type=classified | 1,628 | 3.60 | 48.05 | 79.10 |
Types /wp-admin/edit-tags.php?taxonomy=ad_type&post_type=classified | 1,831 | 3.20 | 60.50 | 33.89 |
Locations /wp-admin/edit-tags.php?taxonomy=ad_location&post_type=classified | 1,346 | 2.02 | 32.33 | 30.02 |
Settings /wp-admin/edit.php?post_type=classified&page=terraclassifieds_settings | 7,401 | 6.88 | 136.37 | 138.02 |
Ads /wp-admin/edit.php?post_type=classified | 1,145 | 2.22 | 32.73 | 28.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 10 options
- widget_terraclassifiedslatestads
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_terraclassifiedsmenu
- theysaidso_admin_options
- widget_recent-comments
- widget_terraclassifiedscategories
- widget_terraclassifiedssearch
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/terraclassifieds/inc/user/add-role.php
- > /wp-content/plugins/terraclassifieds/inc/user/user.php
- > /wp-content/plugins/terraclassifieds/inc/user/remove-role.php
- > /wp-content/plugins/terraclassifieds/terraclassifieds.php
- 113× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_hookup' not found in wp-content/plugins/terraclassifieds/inc/cmb2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function terraclassifieds_get_option() in wp-content/plugins/terraclassifieds/inc/security.php:2
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/terraclassifieds/inc/cmb2/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/terraclassifieds/inc/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/terraclassifieds/inc/functions/layout.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/terraclassifieds/inc/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/terraclassifieds/inc/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/terraclassifieds/inc/cmb2/cmb2/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/terraclassifieds/inc/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/terraclassifieds/inc/cmb2/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: classified ads, advertising, classifieds, classifieds plugin
terraclassifieds/terraclassifieds.php 92% from 13 tests
The main file in "TerraClassifieds - Simple Classifieds Plugin" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 156 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin113,593 lines of code in 482 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 241 | 28,886 | 37,492 | 65,989 |
PHP | 159 | 5,620 | 13,202 | 22,662 |
CSS | 34 | 2,974 | 2,394 | 14,240 |
SVG | 4 | 0 | 0 | 4,112 |
JavaScript | 21 | 784 | 1,053 | 3,753 |
Markdown | 7 | 436 | 0 | 1,463 |
Sass | 16 | 300 | 25 | 1,374 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 212)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 18.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 217.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 212.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 159 | |
▷ Abstract classes | 16 | 10.06% |
▷ Concrete classes | 143 | 89.94% |
▷ Final classes | 0 | 0.00% |
Methods | 1,152 | |
▷ Static methods | 174 | 15.10% |
▷ Public methods | 965 | 83.77% |
▷ Protected methods | 179 | 15.54% |
▷ Private methods | 8 | 0.69% |
Functions | 180 | |
▷ Named functions | 177 | 98.33% |
▷ Anonymous functions | 3 | 1.67% |
Constants | 33 | |
▷ Global constants | 12 | 36.36% |
▷ Class constants | 21 | 63.64% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
37 compressed PNG files occupy 0.33MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
inc/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
inc/cmb2/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/cmb2/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
inc/cmb2/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |