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
Installer ran successfully
Server metrics [RAM: ▲1.75MB] [CPU: ▲17.08ms] Passed 4 tests
Server-side resources used by WPAdverts - Classifieds Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.08 ▲1.61 | 60.87 ▲16.29 |
Dashboard /wp-admin | 5.12 ▲1.81 | 106.66 ▲58.34 |
Posts /wp-admin/edit.php | 5.19 ▲1.83 | 67.07 ▲22.29 |
Add New Post /wp-admin/post-new.php | 8.00 ▲2.11 | 103.58 ▲9.64 |
Media Library /wp-admin/upload.php | 4.97 ▲1.74 | 52.83 ▲20.11 |
Add New /wp-admin/post-new.php?post_type=advert | 5.18 | 74.33 |
Options /wp-admin/edit.php?post_type=advert&page=adverts-extensions | 4.96 | 47.01 |
Categories /wp-admin/edit-tags.php?taxonomy=advert_category&post_type=advert | 5.04 | 49.11 |
All Classifieds /wp-admin/edit.php?post_type=advert | 5.11 | 52.56 |
Server storage [IO: ▲5.91MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 294 new files
Database: no new tables, 13 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
adverts_config |
widget_wpadverts-widget-ads |
can_compress_scripts |
adverts_moderate |
advert_category_children |
adverts_gallery |
widget_wpadverts-widget-categories |
... |
Browser metrics Passed 4 tests
WPAdverts - Classifieds Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲68 | 14.27 ▲0.00 | 1.82 ▲0.08 | 43.86 ▼0.71 |
Dashboard /wp-admin | 2,233 ▲52 | 5.61 ▼0.05 | 91.80 ▼20.50 | 40.45 ▼5.40 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 1.94 ▼0.04 | 39.28 ▲3.73 | 35.89 ▲2.39 |
Add New Post /wp-admin/post-new.php | 6,302 ▲4,776 | 19.74 ▼3.52 | 1,095.04 ▲430.80 | 43.06 ▼8.32 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.26 ▲0.02 | 100.63 ▲3.19 | 42.47 ▼1.79 |
Add New /wp-admin/post-new.php?post_type=advert | 2,864 | 8.18 | 222.85 | 91.24 |
Options /wp-admin/edit.php?post_type=advert&page=adverts-extensions | 1,540 | 1.99 | 24.69 | 35.02 |
Categories /wp-admin/edit-tags.php?taxonomy=advert_category&post_type=advert | 1,417 | 2.25 | 28.32 | 32.94 |
All Classifieds /wp-admin/edit.php?post_type=advert | 1,218 | 2.49 | 48.36 | 29.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 10 options
- theysaidso_admin_options
- widget_wpadverts-widget-ads
- widget_recent-posts
- db_upgraded
- wpadverts_block_templates_global_method
- can_compress_scripts
- widget_wpadverts-widget-categories
- widget_recent-comments
- widget_theysaidso_widget
- advert_category_children
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpadverts/blocks/single-data-table/templates/grid.php
- > /wp-content/plugins/wpadverts/blocks/single-contact/templates/contact.php
- > /wp-content/plugins/wpadverts/blocks/categories/templates/categories-all.php
- > /wp-content/plugins/wpadverts/blocks/single-data-table/templates/text.php
- > /wp-content/plugins/wpadverts/blocks/list/templates/list.php
- > /wp-content/plugins/wpadverts/blocks/single-data-table/templates/list.php
- 126× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wpadverts/blocks/single-data-table/templates/list.php on line 2
- > PHP Notice
Undefined variable: data_table in wp-content/plugins/wpadverts/blocks/single-data-table/templates/grid.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Adext_Emails' not found in wp-content/plugins/wpadverts/addons/emails/emails.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wpadverts/templates/list.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpadverts/addons/contact-form/contact-form.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpadverts/addons/bank-transfer/admin/options.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/wpadverts/addons/core/admin/types-edit-post.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wpadverts/templates/manage-edit.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wpadverts/blocks/single-contact/templates/contact.php on line 1
- > PHP Notice
Undefined variable: data_table in wp-content/plugins/wpadverts/blocks/single-data-table/templates/list.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: classified script, wp classifieds, classifieds, classified ads, classified...
wpadverts/wpadverts.php Passed 13 tests
Analyzing the main PHP file in "WPAdverts - Classifieds Plugin" version 2.1.1
56 characters long description:
The lightweight WordPress classifieds plugin done right.
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
Good job! No executable or dangerous file extensions detected56,822 lines of code in 256 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 150 | 5,559 | 6,438 | 20,816 |
PO File | 18 | 8,002 | 9,373 | 19,369 |
CSS | 19 | 804 | 184 | 8,493 |
JavaScript | 34 | 1,347 | 676 | 6,718 |
JSON | 12 | 3 | 0 | 718 |
SVG | 23 | 674 | 0 | 708 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 19.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 47 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 417 | |
▷ Static methods | 23 | 5.52% |
▷ Public methods | 364 | 87.29% |
▷ Protected methods | 51 | 12.23% |
▷ Private methods | 2 | 0.48% |
Functions | 323 | |
▷ Named functions | 322 | 99.69% |
▷ Anonymous functions | 1 | 0.31% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/swipebox-icons.png | 0.71KB | 0.43KB | ▼ 39.64% |
assets/images/icon-arrow-down.png | 0.16KB | 0.20KB | 0.00% |