Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲3.22MB] [CPU: ▲31.81ms] Passed 4 tests
Analyzing server-side resources used by Control Listings - Classifieds Ads Directory Portal Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.71 ▲3.25 | 68.13 ▲26.86 |
Dashboard /wp-admin | 6.51 ▲3.20 | 78.01 ▲28.08 |
Posts /wp-admin/edit.php | 6.56 ▲3.21 | 80.55 ▲37.29 |
Add New Post /wp-admin/post-new.php | 9.29 ▲3.40 | 130.71 ▲37.01 |
Media Library /wp-admin/upload.php | 6.47 ▲3.24 | 65.78 ▲35.29 |
Add New /wp-admin/post-new.php?post_type=ctrl_listings | 6.85 | 98.26 |
Categories /wp-admin/edit-tags.php?taxonomy=listing_cat&post_type=ctrl_listings | 6.56 | 72.12 |
Tags /wp-admin/edit-tags.php?taxonomy=listing_tag&post_type=ctrl_listings | 6.46 | 63.64 |
All Listings /wp-admin/edit.php?post_type=ctrl_listings | 6.96 | 62.97 |
Settings /wp-admin/edit.php?post_type=ctrl_listings&page=listing-settings | 6.58 | 71.80 |
Server storage [IO: ▲6.70MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 778 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_control_listings_bookmarks |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Control Listings - Classifieds Ads Directory Portal Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲203 | 13.68 ▼1.03 | 12.32 ▲10.45 | 40.49 ▼6.29 |
Dashboard /wp-admin | 2,241 ▲61 | 5.60 ▼0.02 | 96.60 ▲4.99 | 42.41 ▼3.97 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 1.99 ▼0.04 | 39.33 ▲2.66 | 36.68 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,794 ▲256 | 23.68 ▲0.83 | 727.66 ▲74.78 | 43.16 ▼28.36 |
Media Library /wp-admin/upload.php | 1,467 ▲64 | 4.18 ▼0.00 | 99.22 ▼3.06 | 45.57 ▼1.00 |
Add New /wp-admin/post-new.php?post_type=ctrl_listings | 4,661 | 11.02 | 347.38 | 89.23 |
Categories /wp-admin/edit-tags.php?taxonomy=listing_cat&post_type=ctrl_listings | 1,651 | 3.77 | 48.64 | 29.65 |
Tags /wp-admin/edit-tags.php?taxonomy=listing_tag&post_type=ctrl_listings | 1,289 | 2.12 | 27.50 | 29.84 |
All Listings /wp-admin/edit.php?post_type=ctrl_listings | 1,187 | 1.91 | 32.37 | 31.22 |
Settings /wp-admin/edit.php?post_type=ctrl_listings&page=listing-settings | 2,439 | 4.05 | 109.51 | 69.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_control_listings_bookmarks
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/control-listings/views/loop/map.php
- > /wp-content/plugins/control-listings/views/single/tabs.php
- > /wp-content/plugins/control-listings/views/single/slider.php
- 235× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: columns in wp-content/plugins/control-listings/views/my-account/user-listings.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/control-listings/views/modal.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/control-listings/views/loop/content-none.php:3
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/control-listings/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/control-listings/vendor/composer/installers/src/Composer/Installers/TaoInstaller.php:7
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/control-listings/views/single/tabs.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/control-listings/views/single/enquiry/bookmarks.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/control-listings/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/control-listings/views/loop/filter-map.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function control_listings_get_ratings_by_type() in wp-content/plugins/control-listings/views/single/sidebar/reviews.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
control-listings/control-listings.php Passed 13 tests
"Control Listings - Classifieds Ads Directory Portal Manager" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
40 characters long description:
Classifieds ads directory portal manager
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected69,308 lines of code in 728 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 181 | 7,219 | 9,270 | 26,707 |
PHP | 392 | 3,660 | 5,370 | 21,521 |
CSS | 54 | 1,048 | 177 | 13,264 |
Sass | 91 | 1,361 | 1,306 | 7,123 |
JSON | 3 | 0 | 0 | 407 |
LESS | 2 | 9 | 15 | 161 |
YAML | 3 | 31 | 3 | 123 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis 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.36 |
Average class complexity | 6.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 258 | |
▷ Abstract classes | 7 | 2.71% |
▷ Concrete classes | 251 | 97.29% |
▷ Final classes | 15 | 5.98% |
Methods | 985 | |
▷ Static methods | 365 | 37.06% |
▷ Public methods | 783 | 79.49% |
▷ Protected methods | 120 | 12.18% |
▷ Private methods | 82 | 8.32% |
Functions | 183 | |
▷ Named functions | 161 | 87.98% |
▷ Anonymous functions | 22 | 12.02% |
Constants | 16 | |
▷ Global constants | 12 | 75.00% |
▷ Class constants | 4 | 25.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
33 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
assets/marker/academics.png | 1.12KB | 0.61KB | ▼ 45.43% |
vendor/wpmetabox/meta-box/img/jqueryui/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |