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.56MB] [CPU: ▲0.93ms] Passed 4 tests
This is a short check of server-side resources used by WP Classified
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 45.56 ▲5.44 |
Dashboard /wp-admin | 3.88 ▲0.57 | 49.11 ▼1.90 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 51.31 ▲5.02 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.59 | 97.74 ▼4.83 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 44.62 ▲12.71 |
Add New Ads /wp-admin/post-new.php?post_type=wp-classified-ads | 3.94 | 51.90 |
Ads Type /wp-admin/edit-tags.php?taxonomy=classified-ads-type&post_type=wp-classified-ads | 3.73 | 38.29 |
All Ad Items /wp-admin/edit.php?post_type=wp-classified-ads | 3.94 | 43.91 |
Server storage [IO: ▲4.99MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 73 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wp_classified_flush_permalink |
widget_recent-comments |
db_upgraded |
wp_classified_user_dashboard_page_id |
theysaidso_admin_options |
wp_setup_page_redirect |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Classified
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,491 ▲734 | 23.24 ▲9.00 | 218.85 ▲216.61 | 81.22 ▲27.19 |
Dashboard /wp-admin | 2,237 ▲46 | 5.76 ▲0.73 | 94.86 ▼11.94 | 40.91 ▼4.26 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 2.01 ▼0.04 | 39.39 ▲3.43 | 35.73 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,703 ▲170 | 24.60 ▲1.26 | 585.33 ▼23.63 | 35.52 ▼13.31 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.14 ▼0.06 | 95.72 ▼7.71 | 42.21 ▼2.24 |
Add New Ads /wp-admin/post-new.php?post_type=wp-classified-ads | 1,911 | 16.81 | 286.41 | 84.18 |
Ads Type /wp-admin/edit-tags.php?taxonomy=classified-ads-type&post_type=wp-classified-ads | 1,290 | 2.14 | 27.80 | 29.76 |
All Ad Items /wp-admin/edit.php?post_type=wp-classified-ads | 1,576 | 13.17 | 119.94 | 27.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- wp_classified_user_dashboard_page_id
- db_upgraded
- widget_recent-posts
- wp_setup_page_redirect
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- wp_classified_flush_permalink
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/classified/wp-classified-ads.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function Wp_Classified_Ads\\add_action() in wp-content/plugins/classified/inc/admin/classified-ads-post-type.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function Wp_Classified_Ads\\add_filter() in wp-content/plugins/classified/inc/hook_list/single_ads_hook.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/classified/inc/templates/classified-ads-archive.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/classified/inc/templates/classified-ads-single-archive.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function Wp_Classified_Ads\\add_shortcode() in wp-content/plugins/classified/inc/shortcode/user_dashboard.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wp-classified-ads
- > Network (severe)
wp-content/plugins/classified/app/bundle/js/font-awesome.min.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: classifieds script, classified wp, classifieds, wp classified, classified...
classified/wp-classified-ads.php 92% from 13 tests
The main file in "WP Classified" v. 3.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("classified.php" instead of "wp-classified-ads.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 plugin4,271 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 145 | 806 | 2,119 |
JavaScript | 8 | 273 | 1,080 | 1,262 |
CSS | 11 | 46 | 13 | 836 |
SVG | 1 | 0 | 0 | 54 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 12.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 1 | 3.45% |
Methods | 83 | |
▷ Static methods | 51 | 61.45% |
▷ Public methods | 82 | 98.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.20% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 15 | |
▷ Global constants | 15 | 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
There are no PNG files in this plugin