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
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.55ms] Passed 4 tests
This is a short check of server-side resources used by ReSpek Nature
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 43.13 ▼2.41 |
Dashboard /wp-admin | 3.45 ▲0.15 | 51.62 ▼2.53 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 51.15 ▼0.35 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 101.00 ▼4.90 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 42.00 ▲4.87 |
Server storage [IO: ▲2.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ReSpek Nature
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.27 ▼0.34 | 1.78 ▼0.11 | 45.76 ▼1.35 |
Dashboard /wp-admin | 2,201 ▲21 | 5.53 ▼0.08 | 84.65 ▼9.42 | 40.02 ▼6.45 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.00 ▲0.01 | 41.02 ▲1.64 | 37.64 ▲2.99 |
Add New Post /wp-admin/post-new.php | 1,551 ▲6 | 23.56 ▲0.36 | 681.87 ▼3.71 | 65.36 ▼7.51 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.31 ▲0.12 | 115.64 ▼3.32 | 47.08 ▼2.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/respek-nature/templates/admin/respek_manual.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'respek_nature\\Inc\\Base\\BaseController' not found in wp-content/plugins/respek-nature/inc/Base/Enqueue.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/respek-nature/templates/respek_button_template_default.php:1
- > PHP Fatal error
Uncaught Error: Class 'respek_nature\\Inc\\Base\\BaseController' not found in wp-content/plugins/respek-nature/inc/Api/Callbacks/ManagerCallbacks.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/respek-nature/templates/admin/respek_settings.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/respek-nature/templates/admin/respek_impact_template.php:3
- > PHP Fatal error
Uncaught Error: Class 'respek_nature\\Inc\\Base\\BaseController' not found in wp-content/plugins/respek-nature/inc/Api/Callbacks/AdminCallbacks.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/respek-nature/respek-autoloader.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function respek_nature\\add_action() in wp-content/plugins/respek-nature/respek_nature.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/respek-nature/templates/respek_popup_template_default.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
These attributes need your attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
respek-nature/respek_nature.php 85% from 13 tests
"ReSpek Nature" version 1.0.45's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("respek-nature.php" instead of "respek_nature.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin21,128 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 17,420 |
PHP | 17 | 302 | 169 | 1,334 |
CSS | 3 | 121 | 71 | 1,214 |
PO File | 5 | 270 | 430 | 575 |
JavaScript | 7 | 54 | 69 | 557 |
SVG | 1 | 0 | 0 | 13 |
Sass | 1 | 0 | 1 | 13 |
Bourne Shell | 1 | 0 | 1 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 15 | 18.52% |
▷ Public methods | 75 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 7.41% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 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
7 PNG files occupy 1.18MB with 0.75MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/leaf.png | 15.15KB | 8.44KB | ▼ 44.25% |
images/respek_logo_dark.png | 60.84KB | 17.50KB | ▼ 71.24% |
assets/banner-1544x500.png | 786.97KB | 285.01KB | ▼ 63.78% |
assets/banner-772x250.png | 245.75KB | 82.97KB | ▼ 66.24% |
images/respek_logo_white.png | 58.96KB | 17.02KB | ▼ 71.14% |