Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼1.83ms] 75% from 4 tests
A check of server-side resources used by Sirve - Simple Directory Listing
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 1,395.59ms on /wp-admin/edit.php?post_type=sirve&page=sirve-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 42.86 ▼2.69 |
Dashboard /wp-admin | 3.46 ▲0.11 | 48.36 ▼10.61 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.27 ▲4.99 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 93.89 ▲0.99 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 42.42 ▲11.16 |
Tags /wp-admin/edit-tags.php?taxonomy=sirve_tag&post_type=sirve | 3.47 | 42.05 |
Settings /wp-admin/edit.php?post_type=sirve&page=sirve-settings | 3.36 | 41.43 |
Recommendations /wp-admin/edit.php?post_type=sirve&page=sirve-recommendations | 7.68 | 1,395.59 |
Add Listing /wp-admin/post-new.php?post_type=sirve | 6.25 | 85.39 |
Types /wp-admin/edit-tags.php?taxonomy=sirve_event&post_type=sirve | 3.38 | 36.03 |
Categories /wp-admin/edit-tags.php?taxonomy=sirve_category&post_type=sirve | 3.44 | 39.79 |
All Listings /wp-admin/edit.php?post_type=sirve | 3.44 | 35.15 |
Server storage [IO: ▲0.34MB] [DB: ▲0.68MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Sirve - Simple Directory Listing
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲102 | 14.28 ▼0.04 | 2.15 ▲0.49 | 40.38 ▼1.82 |
Dashboard /wp-admin | 2,238 ▲61 | 5.52 ▲0.02 | 96.33 ▲6.50 | 70.48 ▲33.85 |
Posts /wp-admin/edit.php | 2,160 ▲60 | 2.02 ▲0.01 | 38.75 ▼3.88 | 34.57 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,598 ▲72 | 23.73 ▲0.60 | 665.81 ▼23.14 | 43.48 ▼13.83 |
Media Library /wp-admin/upload.php | 1,448 ▲51 | 4.23 ▲0.13 | 96.36 ▼4.89 | 74.91 ▲28.13 |
Tags /wp-admin/edit-tags.php?taxonomy=sirve_tag&post_type=sirve | 1,983 | 6.77 | 144.21 | 96.82 |
Settings /wp-admin/edit.php?post_type=sirve&page=sirve-settings | 2,700 | 3.11 | 95.89 | 34.02 |
Recommendations /wp-admin/edit.php?post_type=sirve&page=sirve-recommendations | 2,973 | 2.18 | 40.56 | 82.61 |
Add Listing /wp-admin/post-new.php?post_type=sirve | 6,394 | 19.92 | 801.85 | 69.58 |
Types /wp-admin/edit-tags.php?taxonomy=sirve_event&post_type=sirve | 1,339 | 2.17 | 30.33 | 29.84 |
Categories /wp-admin/edit-tags.php?taxonomy=sirve_category&post_type=sirve | 2,015 | 6.64 | 129.08 | 101.74 |
All Listings /wp-admin/edit.php?post_type=sirve | 1,224 | 2.24 | 34.20 | 32.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.68MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 fix the following
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sirve/frontend/templates/event-archive-layout.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sirve/admin/include/custom-meta-fields.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/sirve/frontend/templates/sirve-full-width-page-template.php:7
- > PHP Fatal error
Uncaught Error: Class 'Sirve\\Admin\\Recommended_Plugins' not found in wp-content/plugins/sirve/admin/classes/class.recommended_plugins_menu_call.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_queried_object() in wp-content/plugins/sirve/frontend/templates/archive-category.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sirve/frontend/templates/tags-archive-layout.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sirve/frontend/templates/archive-layout.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sirve/admin/classes/class.admin-settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_queried_object() in wp-content/plugins/sirve/frontend/templates/archive-tags.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sirve/admin/classes/class.custom-post-type.php:8
- > 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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Screenshot #10 (Gutenberg editor) image missing
sirve/sirve.php Passed 13 tests
"Sirve - Simple Directory Listing" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
85 characters long description:
Enables you to easily manage your product and service listings with tons of features.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin3,948 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 479 | 281 | 2,836 |
CSS | 2 | 107 | 6 | 803 |
JavaScript | 4 | 54 | 80 | 307 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 16.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 4 | 7.14% |
▷ Public methods | 56 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/extensions/htmega-pro.png | 4.60KB | 4.78KB | 0.00% |
admin/assets/images/extensions/ht-script-pro.png | 6.03KB | 2.71KB | ▼ 55.09% |
(invalid) admin/assets/images/extensions/docus-pro.png | 3.98KB | 0.00KB | ▼ 100.00% |
(invalid) admin/assets/images/extensions/cf7-extensions-pro.png | 8.57KB | 0.00KB | ▼ 100.00% |
admin/assets/images/extensions/swatchly-pro.png | 13.99KB | 5.41KB | ▼ 61.37% |