Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.15MB] [CPU: ▼53.57ms] Passed 4 tests
Analyzing server-side resources used by Local Classifieds
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.62 | 16.52 ▼26.55 |
Dashboard /wp-admin | 2.88 ▼0.47 | 21.34 ▼50.70 |
Posts /wp-admin/edit.php | 2.88 ▼0.48 | 19.01 ▼35.79 |
Add New Post /wp-admin/post-new.php | 2.88 ▼3.01 | 19.11 ▼101.25 |
Media Library /wp-admin/upload.php | 2.88 ▼0.35 | 21.60 ▼16.64 |
Classifieds List /wp-admin/edit.php?post_type=classified | 2.88 | 17.01 |
Settings /wp-admin/edit.php?post_type=classified&page=LCGRW_PAGE | 2.88 | 16.77 |
Post new ad /wp-admin/post-new.php?post_type=classified | 2.88 | 18.17 |
Server storage [IO: ▲0.09MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
LCGRW_add_page_id |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
LCGRW_list_page_id |
Browser metrics Passed 4 tests
Checking browser requirements for Local Classifieds
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲135 | 13.50 ▼0.78 | 10.35 ▲8.05 | 39.64 ▼5.25 |
Dashboard /wp-admin | 2,210 ▲30 | 5.52 ▼0.14 | 86.11 ▼12.61 | 85.73 ▲41.08 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 2.12 ▲0.08 | 40.66 ▼1.29 | 34.80 ▼3.22 |
Add New Post /wp-admin/post-new.php | 1,568 ▲40 | 23.39 ▼0.04 | 642.88 ▼32.04 | 157.84 ▲100.86 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.19 ▼0.01 | 99.23 ▼12.40 | 74.59 ▲26.66 |
Classifieds List /wp-admin/edit.php?post_type=classified | 1,094 | 1.99 | 32.04 | 31.73 |
Settings /wp-admin/edit.php?post_type=classified&page=LCGRW_PAGE | 846 | 2.00 | 24.03 | 27.98 |
Post new ad /wp-admin/post-new.php?post_type=classified | 2,563 | 8.10 | 177.95 | 112.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- Zombie WordPress options detected upon uninstall: 8 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- LCGRW_list_page_id
- widget_recent-comments
- LCGRW_add_page_id
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=classified
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- > GET request to /wp-admin/edit.php?post_type=classified&page=LCGRW_PAGE
- > Notice in wp-content/plugins/local-classifieds/local-classifieds.php+410
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/local-classifieds/includes/templates/add.php:91
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/local-classifieds/local-classifieds.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/local-classifieds/includes/templates/single.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/local-classifieds/includes/templates/list.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== local-classifieds ===
)
local-classifieds/local-classifieds.php Passed 13 tests
The primary PHP file in "Local Classifieds" version 1.0 is used by WordPress to initiate all plugin functionality
65 characters long description:
Classifieds system for your LOCAL needs, works with any template.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin379 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 129 | 125 | 377 |
CSS | 1 | 0 | 4 | 1 |
JavaScript | 1 | 0 | 5 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/class_icon.png | 0.76KB | 0.68KB | ▼ 10.03% |