Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.58MB] [CPU: ▼4.98ms] Passed 4 tests
An overview of server-side resources used by Simple Classifieds
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 40.19 ▲1.33 |
Dashboard /wp-admin | 3.92 ▲0.57 | 48.41 ▼16.58 |
Posts /wp-admin/edit.php | 3.96 ▲0.61 | 46.97 ▼0.56 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 91.46 ▼4.10 |
Media Library /wp-admin/upload.php | 3.77 ▲0.55 | 40.92 ▲2.44 |
Add New /wp-admin/post-new.php?post_type=iworks_classified | 6.54 | 87.02 |
Categories /wp-admin/edit-tags.php?taxonomy=classified_category&post_type=iworks_classified | 3.77 | 36.15 |
Configuration /wp-admin/edit.php?post_type=iworks_classified&page=iworks_classifieds_index | 3.76 | 38.25 |
Classifieds /wp-admin/edit.php?post_type=iworks_classified | 3.88 | 38.00 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 21 new options
New WordPress options |
---|
iworks_classifieds_boad_add_social_media |
iworks_classifieds_general_allow_to_add |
widget_theysaidso_widget |
iworks_classifieds_category_show |
iworks_classifieds_boat_auto_add_feature_image |
iworks_classifieds_listing_show_social_media |
theysaidso_admin_options |
iworks_classifieds_cache_stamp |
iworks_classifieds_listing_show_boats_table |
iworks_classifieds_boat_add_extra_data |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Classifieds
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲121 | 13.23 ▼1.03 | 4.73 ▲3.03 | 40.99 ▼0.49 |
Dashboard /wp-admin | 2,242 ▲53 | 5.81 ▲0.90 | 94.47 ▼25.47 | 35.90 ▼7.60 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.05 ▲0.06 | 34.02 ▼4.38 | 32.15 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 17.73 ▼5.41 | 649.76 ▼35.97 | 53.63 ▼5.51 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.23 ▲0.02 | 97.51 ▼6.00 | 41.81 ▼3.32 |
Add New /wp-admin/post-new.php?post_type=iworks_classified | 6,317 | 19.45 | 815.52 | 34.98 |
Categories /wp-admin/edit-tags.php?taxonomy=classified_category&post_type=iworks_classified | 1,300 | 2.14 | 26.07 | 27.01 |
Configuration /wp-admin/edit.php?post_type=iworks_classified&page=iworks_classifieds_index | 1,405 | 3.02 | 60.42 | 36.26 |
Classifieds /wp-admin/edit.php?post_type=iworks_classified | 1,110 | 1.93 | 29.88 | 29.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_option() in wp-content/plugins/simple-classifieds/vendor/iworks/rate/rate.php:89
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-classifieds/assets/templates/contact.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/simple-classifieds/assets/templates/location.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/simple-classifieds/assets/templates/category.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_avatar() in wp-content/plugins/simple-classifieds/assets/templates/avatar.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/simple-classifieds/assets/templates/price.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: classifieds
simple-classifieds/simple-classifieds.php Passed 13 tests
Analyzing the main PHP file in "Simple Classifieds" version 1.0.1
32 characters long description:
Realy simple classifieds plugin.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,851 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 250 | 749 | 2,832 |
JavaScript | 6 | 58 | 92 | 415 |
CSS | 6 | 22 | 11 | 290 |
PO File | 1 | 110 | 123 | 261 |
SVG | 2 | 1 | 1 | 53 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 186)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 87.33 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 379.00 |
Average method complexity | 4.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 186.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 1 | 0.76% |
▷ Public methods | 88 | 67.18% |
▷ Protected methods | 16 | 12.21% |
▷ Private methods | 27 | 20.61% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin