Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.70MB] [CPU: ▼138.37ms] Passed 4 tests
Server-side resources used by Citadela Directory Plugin Lite - Listing Directories for WordPress & Gutenberg
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.25 ▲0.53 | 36.41 ▲15.38 |
Dashboard /wp-admin | 3.84 ▲0.79 | 51.24 ▲2.79 |
Posts /wp-admin/edit.php | 3.90 ▲0.79 | 47.30 ▲3.15 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.84 | 96.29 ▼561.03 |
Media Library /wp-admin/upload.php | 3.70 ▲0.70 | 36.49 ▲1.62 |
Add New /wp-admin/post-new.php?post_type=citadela-item | 3.98 | 52.81 |
All Items /wp-admin/edit.php?post_type=citadela-item | 3.84 | 43.06 |
Server storage [IO: ▲9.63MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 139 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Citadela Directory Plugin Lite - Listing Directories for WordPress & Gutenberg
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,186 ▲580 | 19.39 ▲3.66 | 18.49 ▲6.82 | 49.58 ▼1.02 |
Dashboard /wp-admin | 3,294 ▲357 | 7.88 ▲1.89 | 168.38 ▲24.26 | 107.20 ▼9.00 |
Posts /wp-admin/edit.php | 3,092 ▲356 | 4.72 ▲1.88 | 87.12 ▲25.76 | 89.07 ▲1.07 |
Add New Post /wp-admin/post-new.php | 1,565 ▼311 | 18.57 ▼0.59 | 341.03 ▼56.67 | 105.40 ▼5.03 |
Media Library /wp-admin/upload.php | 1,938 ▲131 | 5.62 ▲0.56 | 127.77 ▼14.20 | 113.76 ▼8.88 |
Add New /wp-admin/post-new.php?post_type=citadela-item | 3,814 | 9.89 | 254.40 | 155.45 |
All Items /wp-admin/edit.php?post_type=citadela-item | 1,772 | 4.61 | 81.88 | 68.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 18× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/tmpl/control-multi-avatars.php
- > /wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/tmpl/control-select.php
- > /wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/tmpl/control-color.php
- > /wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/tmpl/control-checkboxes.php
- > /wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/tmpl/manager.php
- > /wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/tmpl/control-parent.php
- > /wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/tmpl/nav.php
- > /wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/tmpl/control-radio-image.php
- > /wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/tmpl/control-radio.php
- > /wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/tmpl/control-palette.php
- 37× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Setting' not found in wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/inc/settings/class-setting-datetime.php:20
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control_Radio' not found in wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/inc/controls/class-control-radio-image.php:20
- > PHP Notice
Trying to get property 'subtitle' of non-object in wp-content/plugins/citadela-directory-lite/plugin/cpt/item/templates/parts/single-item-page-title.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'CitadelaDirectoryFunctions' not found in wp-content/plugins/citadela-directory-lite/plugin/cpt/item/templates/parts/single-item-map.php:2
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Setting' not found in wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/inc/settings/class-setting-array.php:18
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/inc/controls/class-control-image.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/tmpl/control-datetime.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/citadela-directory-lite/plugin/libs/butterbean/class-butterbean.php:144
- > PHP Notice
Undefined variable: meta in wp-content/plugins/citadela-directory-lite/plugin/cpt/item/templates/parts/single-item-page-title.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/citadela-directory-lite/plugin/cpt/item/templates/single-item.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
citadela-directory-lite/citadela-directory-lite.php Passed 13 tests
The main PHP file in "Citadela Directory Plugin Lite - Listing Directories for WordPress & Gutenberg" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
32 characters long description:
Create directory listing website
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
There were no executable files found in this plugin73,567 lines of code in 104 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 3 | 0 | 57,821 |
SVG | 4 | 0 | 13 | 9,316 |
PHP | 68 | 1,194 | 2,265 | 3,365 |
CSS | 9 | 387 | 98 | 1,937 |
JavaScript | 19 | 376 | 434 | 1,128 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 36 | 100.00% |
▷ Final classes | 1 | 2.78% |
Methods | 223 | |
▷ Static methods | 54 | 24.22% |
▷ Public methods | 210 | 94.17% |
▷ Protected methods | 8 | 3.59% |
▷ Private methods | 5 | 2.24% |
Functions | 23 | |
▷ Named functions | 14 | 60.87% |
▷ Anonymous functions | 9 | 39.13% |
Constants | 2 | |
▷ Global constants | 2 | 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
15 compressed PNG files occupy 1.80MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin/assets/leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
plugin/assets/leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
plugin/assets/leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
design/css/admin/img/color-pattern.png | 0.18KB | 0.11KB | ▼ 40.21% |
plugin/settings/template/img/screen-directory-blocks-opt.png | 347.80KB | 349.15KB | 0.00% |