Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.58MB] [CPU: ▼4.85ms] Passed 4 tests
An overview of server-side resources used by Classified Ads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.53 | 37.52 ▼4.78 |
Dashboard /wp-admin | 3.92 ▲0.61 | 46.94 ▲0.25 |
Posts /wp-admin/edit.php | 3.95 ▲0.60 | 45.78 ▲1.61 |
Add New Post /wp-admin/post-new.php | 6.57 ▲0.68 | 76.25 ▼14.58 |
Media Library /wp-admin/upload.php | 3.81 ▲0.58 | 33.96 ▼0.29 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 3.92 | 33.67 |
Classified Ads Import /wp-admin/tools.php?page=classified_ads_import | 3.78 | 33.28 |
Server storage [IO: ▲10.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 154 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Classified Ads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲161 | 13.58 ▼1.05 | 7.63 ▲5.94 | 39.95 ▼3.22 |
Dashboard /wp-admin | 2,239 ▲59 | 5.52 ▼0.33 | 83.46 ▼15.44 | 39.83 ▼4.32 |
Posts /wp-admin/edit.php | 2,159 ▲56 | 2.07 ▲0.09 | 34.68 ▼2.21 | 40.27 ▲4.19 |
Add New Post /wp-admin/post-new.php | 1,571 ▲43 | 23.15 ▲0.19 | 644.41 ▼5.65 | 53.91 ▼9.66 |
Media Library /wp-admin/upload.php | 1,452 ▲49 | 4.24 ▲0.13 | 95.34 ▼4.04 | 44.48 ▲0.61 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 1,081 | 2.05 | 23.57 | 29.45 |
Classified Ads Import /wp-admin/tools.php?page=classified_ads_import | 968 | 2.07 | 24.68 | 32.46 |
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
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/classified-ads/admin/partials/classified-ads-admin-display.php
- > /wp-content/plugins/classified-ads/public/partials/classified-ads-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/classified-ads/tgm-pa/class-tgm-plugin-activation.php:2113
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/classified-ads/tgm-pa/class-tgm-plugin-activation.php:2113
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Classified Ads Directory Categories Element), #2 (Classified Ads Directory Tree Element), #3 (Classified Ads Directory Import Tool)
classified-ads/classified-ads.php Passed 13 tests
"Classified Ads" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
75 characters long description:
Build your Classified Ads Directory Portal based on Wp Directory Kit Plugin
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
There were no executable files found in this plugin21,235 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 491 | 2 | 8,544 |
PO File | 17 | 1,449 | 1,993 | 4,842 |
JSON | 1 | 0 | 0 | 4,566 |
PHP | 17 | 713 | 2,240 | 2,380 |
Markdown | 4 | 184 | 0 | 776 |
CSS | 2 | 23 | 11 | 121 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 23.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 208.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 139 | |
▷ Static methods | 7 | 5.04% |
▷ Public methods | 109 | 78.42% |
▷ Protected methods | 23 | 16.55% |
▷ Private methods | 7 | 5.04% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
demo-data/images/laptop-category-icon-1.png | 0.53KB | 0.57KB | 0.00% |
demo-data/images/mobile-category-icon-1.png | 0.46KB | 0.48KB | 0.00% |
demo-data/images/fashion-category-icon-1.png | 3.00KB | 3.09KB | 0.00% |
demo-data/images/industrial-vehicle-category-icon-1.png | 2.55KB | 2.64KB | 0.00% |
demo-data/images/jobs-category-icon-1.png | 3.55KB | 3.74KB | 0.00% |