Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.48MB] [CPU: ▼2.00ms] Passed 4 tests
A check of server-side resources used by Yes-co ORES
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.53 | 44.79 ▲2.48 |
Dashboard /wp-admin | 3.81 ▲0.50 | 55.58 ▲1.86 |
Posts /wp-admin/edit.php | 3.89 ▲0.54 | 56.53 ▲0.49 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 93.58 ▼11.49 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 43.72 ▲1.16 |
Relaties /wp-admin/edit.php?post_type=relatie | 3.82 | 47.71 |
Yes-co ORES /wp-admin/options-general.php?page=yesco_OG | 3.69 | 38.18 |
Wonen /wp-admin/edit.php?post_type=huis | 3.85 | 48.26 |
BOG projecten /wp-admin/edit.php?post_type=yog-bopr | 3.85 | 44.16 |
Nieuwbouw /wp-admin/edit.php?post_type=yog-nbpr | 3.85 | 44.42 |
BOG /wp-admin/edit.php?post_type=bedrijf | 3.85 | 40.72 |
Complex /wp-admin/edit.php?post_type=yog-bbpr | 3.85 | 42.97 |
Server storage [IO: ▲1.48MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 155 new files
Database: no new tables, 19 new options
New WordPress options |
---|
widget_yogaddresssearchformwidget |
widget_yoglinkedrelationswidget |
widget_recent-comments |
widget_yogsearchformbbprwidget |
widget_yogcontactformwidget |
widget_yogsearchformbogwidget |
widget_yogrecentobjectswidget |
theysaidso_admin_options |
widget_yogobjectattachmentswidget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Yes-co ORES
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,977 ▲216 | 13.71 ▼0.67 | 1.70 ▼0.40 | 45.46 ▲1.88 |
Dashboard /wp-admin | 2,319 ▲113 | 4.89 ▲0.01 | 99.73 ▼11.85 | 63.31 ▲19.33 |
Posts /wp-admin/edit.php | 2,183 ▲83 | 2.06 ▲0.04 | 37.77 ▼3.41 | 41.77 ▲2.58 |
Add New Post /wp-admin/post-new.php | 1,745 ▲200 | 22.28 ▼0.84 | 750.86 ▲55.60 | 43.41 ▼14.45 |
Media Library /wp-admin/upload.php | 1,474 ▲71 | 4.31 ▼0.04 | 109.70 ▲0.84 | 85.23 ▲31.17 |
Relaties /wp-admin/edit.php?post_type=relatie | 1,161 | 2.30 | 44.20 | 29.26 |
Yes-co ORES /wp-admin/options-general.php?page=yesco_OG | 1,029 | 1.73 | 30.05 | 33.47 |
Wonen /wp-admin/edit.php?post_type=huis | 1,222 | 2.28 | 52.65 | 32.63 |
BOG projecten /wp-admin/edit.php?post_type=yog-bopr | 1,200 | 2.23 | 39.63 | 37.45 |
Nieuwbouw /wp-admin/edit.php?post_type=yog-nbpr | 1,191 | 2.26 | 40.64 | 33.22 |
BOG /wp-admin/edit.php?post_type=bedrijf | 1,222 | 2.27 | 35.53 | 32.90 |
Complex /wp-admin/edit.php?post_type=yog-bbpr | 1,193 | 2.36 | 34.04 | 30.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 18 options
- widget_yogsearchformnbtywidget
- widget_yogsearchformbogwidget
- widget_yoglinkedobjectswidget
- widget_yogaddresssearchformwidget
- db_upgraded
- widget_yogsearchformbbprwidget
- widget_yogmapwidget
- widget_yogsearchformnbprwidget
- widget_yogsearchformwonenwidget
- widget_yoglinkedrelationswidget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/yes-co-ores-wordpress-plugin/includes/pages/areas.php
- > /wp-content/plugins/yes-co-ores-wordpress-plugin/includes/pages/parts/menu.php
- > /wp-content/plugins/yes-co-ores-wordpress-plugin/scripts/synchronize.php
- 94× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yes-co-ores-wordpress-plugin/includes/widgets/yog_linked_relations_widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'YogWpAdminObjectUiAbstract' not found in wp-content/plugins/yes-co-ores-wordpress-plugin/includes/classes/yog_wp_admin_object_ui_nbbn.php:6
- > PHP Warning
require_once(YOG_PLUGIN_DIR/includes/config/config.php): failed to open stream: No such file or directory in wp-content/plugins/yes-co-ores-wordpress-plugin/includes/widgets/yog_search_form_widget.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/yes-co-ores-wordpress-plugin/yesco-og.php:18
- > PHP Fatal error
Uncaught Error: Class 'YogProjectTranslationAbstract' not found in wp-content/plugins/yes-co-ores-wordpress-plugin/includes/classes/yog_project_bog_translation.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yes-co-ores-wordpress-plugin/includes/widgets/yog_map_widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'YogWpAdminObjectUiAbstract' not found in wp-content/plugins/yes-co-ores-wordpress-plugin/includes/classes/yog_wp_admin_object_ui_bbpr.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yes-co-ores-wordpress-plugin/includes/widgets/yog_object_attachments_widget.php:6
- > PHP Notice
Undefined variable: templateFiles in wp-content/plugins/yes-co-ores-wordpress-plugin/includes/pages/shortcode_objects.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/yes-co-ores-wordpress-plugin/includes/yog_cli.php:6
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: Screenshot #7 (Project details on the Wordpress Admin) image not found
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
yes-co-ores-wordpress-plugin/yesco-og.php 92% from 13 tests
"Yes-co ORES" version 1.3.83's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("yes-co-ores-wordpress-plugin.php" instead of "yesco-og.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin20,833 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 74 | 3,069 | 5,399 | 15,397 |
JSON | 2 | 0 | 0 | 2,811 |
JavaScript | 17 | 191 | 161 | 1,271 |
Sass | 7 | 17 | 1 | 768 |
PO File | 2 | 275 | 380 | 580 |
CSS | 6 | 0 | 3 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 27.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 273.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 96 | |
▷ Abstract classes | 12 | 12.50% |
▷ Concrete classes | 84 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 633 | |
▷ Static methods | 24 | 3.79% |
▷ Public methods | 534 | 84.36% |
▷ Protected methods | 42 | 6.64% |
▷ Private methods | 57 | 9.00% |
Functions | 44 | |
▷ Named functions | 42 | 95.45% |
▷ Anonymous functions | 2 | 4.55% |
Constants | 87 | |
▷ Global constants | 27 | 31.03% |
▷ Class constants | 60 | 68.97% |
▷ Public constants | 60 | 100.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
16 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon_flickr.png | 0.65KB | 0.71KB | 0.00% |
img/slider-arrow-right.png | 0.27KB | 0.22KB | ▼ 17.28% |
img/icon_website.png | 0.88KB | 1.05KB | 0.00% |
img/maps_marker.png | 0.80KB | 0.87KB | 0.00% |
img/slider-arrow-left.png | 0.25KB | 0.22KB | ▼ 13.79% |