Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.58MB] [CPU: ▼4.75ms] Passed 4 tests
Server-side resources used by Classifieds
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 43.19 ▲2.29 |
Dashboard /wp-admin | 3.93 ▲0.59 | 54.51 ▼12.06 |
Posts /wp-admin/edit.php | 3.95 ▲0.60 | 54.37 ▲1.74 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.64 | 89.54 ▼10.96 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 41.40 ▲4.89 |
Add Listing /wp-admin/post-new.php?post_type=beeclassifieds | 4.33 | 60.78 |
Categories /wp-admin/edit-tags.php?taxonomy=listingcat&post_type=beeclassifieds | 3.84 | 41.73 |
All Listings /wp-admin/edit.php?post_type=beeclassifieds | 3.90 | 42.03 |
Server storage [IO: ▲4.64MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 423 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Classifieds
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲215 | 14.01 ▼0.21 | 14.31 ▲12.49 | 47.58 ▲7.38 |
Dashboard /wp-admin | 2,252 ▲72 | 5.73 ▲0.05 | 89.79 ▲2.49 | 39.29 ▼2.49 |
Posts /wp-admin/edit.php | 2,160 ▲60 | 2.05 ▲0.03 | 40.49 ▲2.78 | 37.01 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,574 ▲43 | 17.72 ▼5.55 | 658.39 ▼3.23 | 61.01 ▼4.29 |
Media Library /wp-admin/upload.php | 1,457 ▲57 | 4.28 ▲0.08 | 101.72 ▼8.81 | 46.85 ▲1.76 |
Add Listing /wp-admin/post-new.php?post_type=beeclassifieds | 1,940 | 3.81 | 71.09 | 34.48 |
Categories /wp-admin/edit-tags.php?taxonomy=listingcat&post_type=beeclassifieds | 1,337 | 2.33 | 28.52 | 32.10 |
All Listings /wp-admin/edit.php?post_type=beeclassifieds | 1,170 | 1.97 | 35.63 | 28.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/bee-classifieds/admin/partials/bee-classi-admin-display.php
- > /wp-content/plugins/bee-classifieds/public/partials/bee-classi-public-display.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function Cmb2Grid\\trailingslashit() in wp-content/plugins/bee-classifieds/includes/framework/grid/Cmb2GridPluginLoad.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function Cmb2Grid\\trailingslashit() in wp-content/plugins/bee-classifieds/includes/framework/grid/Cmb2GridPluginLoad.php:6
- > PHP Fatal error
Uncaught Error: Class 'Cmb2Grid\\Grid\\Column' not found in wp-content/plugins/bee-classifieds/includes/framework/grid/Grid/Group/GroupColumn.php:20
- > PHP Fatal error
Uncaught Error: Class 'Cmb2Grid\\Grid\\Row' not found in wp-content/plugins/bee-classifieds/includes/framework/grid/Grid/Group/GroupRow.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bee-classifieds/includes/framework/bee-classi-options.php:45
- > PHP Fatal error
Uncaught Error: Class 'Cmb2Grid\\Grid\\Cmb2Grid' not found in wp-content/plugins/bee-classifieds/includes/framework/grid/Grid/Group/Cmb2GroupGrid.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bee-classifieds/includes/framework/bee_config.php:72
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
bee-classifieds/bee-classi.php 85% from 13 tests
The primary PHP file in "Classifieds" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("bee-classifieds.php" instead of "bee-classi.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin63,549 lines of code in 245 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 119 | 12,731 | 16,335 | 29,151 |
CSS | 17 | 2,488 | 2,242 | 19,452 |
PHP | 47 | 1,638 | 3,345 | 5,248 |
Sass | 25 | 208 | 57 | 3,587 |
JavaScript | 16 | 458 | 841 | 3,085 |
LESS | 14 | 34 | 44 | 1,646 |
SVG | 2 | 0 | 0 | 973 |
Markdown | 2 | 127 | 0 | 359 |
YAML | 1 | 9 | 33 | 28 |
XML | 1 | 4 | 2 | 17 |
JSON | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 1 | 3.12% |
▷ Concrete classes | 31 | 96.88% |
▷ Final classes | 0 | 0.00% |
Methods | 334 | |
▷ Static methods | 28 | 8.38% |
▷ Public methods | 302 | 90.42% |
▷ Protected methods | 20 | 5.99% |
▷ Private methods | 12 | 3.59% |
Functions | 60 | |
▷ Named functions | 60 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ 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
19 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/framework/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
public/images/buy-now-credit-card-icons-button.png | 24.96KB | 10.63KB | ▼ 57.42% |
includes/framework/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
includes/framework/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
public/images/no_image.png | 18.11KB | 8.28KB | ▼ 54.28% |