Benchmarks
Plugin footprint 83% from 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.28MB] [CPU: ▼0.23ms] Passed 4 tests
Analyzing server-side resources used by Daily and hourly rent of cars, apartments, things, cats.
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 40.26 ▲1.29 |
Dashboard /wp-admin | 3.58 ▲0.28 | 50.94 ▲2.69 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 46.27 ▲0.74 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 85.07 ▼5.62 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 38.35 ▲5.23 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
dscc_admin_listitem_count |
widget_recent-comments |
dscc_admin_filter_radius |
widget_theysaidso_widget |
can_compress_scripts |
dscc_filter_type_show |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Daily and hourly rent of cars, apartments, things, cats.: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 14.47 ▲0.17 | 1.99 ▲0.23 | 44.19 ▲2.34 |
Dashboard /wp-admin | 2,215 ▲30 | 4.80 ▼1.09 | 102.81 ▼32.21 | 46.70 ▲1.00 |
Posts /wp-admin/edit.php | 2,094 ▲23 | 2.00 ▼0.00 | 33.99 ▼2.83 | 32.87 ▼3.05 |
Add New Post /wp-admin/post-new.php | 1,549 ▲35 | 18.58 ▲1.11 | 588.73 ▼109.54 | 52.92 ▼3.41 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.24 ▲0.02 | 100.64 ▼13.32 | 44.55 ▼0.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Rent_Angry_Cat_ns\\Rent_Angry_Cat' not found in wp-content/plugins/rent-of-angry-cats/templates/dscc_ttable.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rent-of-angry-cats/templates/dscc_items.php:17
- > PHP Fatal error
Uncaught Error: Class 'Rent_Angry_Cat_ns\\Rent_Angry_Cat' not found in wp-content/plugins/rent-of-angry-cats/templates/dscc_gettemplatepage.php:7
- > PHP Notice
Undefined variable: SearchBy in wp-content/plugins/rent-of-angry-cats/templates/dscc_items.php on line 17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: A description for screenshot #2 is missing in rent-of-angry-cats/assets to your readme.txt
rent-of-angry-cats/rent_angry_cat.php 77% from 13 tests
The entry point to "Daily and hourly rent of cars, apartments, things, cats." version 1.1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("rent-of-angry-cats.php" instead of "rent_angry_cat.php")
- Requires at least: Required version does not match the one declared in readme.txt ("3.9" instead of "3.0.0")
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
Success! There were no dangerous files found in this plugin7,220 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 23 | 802 | 403 | 3,676 |
CSS | 9 | 185 | 14 | 2,028 |
PHP | 6 | 163 | 164 | 1,130 |
PO File | 2 | 142 | 151 | 335 |
SVG | 1 | 0 | 0 | 51 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 47.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 21 | 63.64% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 5 | 23.81% |
▷ Anonymous functions | 16 | 76.19% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 11.91KB | 6.10KB | ▼ 48.79% |
public/lightgallery/img/video-play.png | 0.80KB | 1.05KB | 0.00% |
public/lightgallery/img/vimeo-play.png | 1.45KB | 1.56KB | 0.00% |
assets/banner-772x250.png | 17.69KB | 16.99KB | ▼ 3.92% |
public/lightgallery/img/youtube-play.png | 2.64KB | 2.37KB | ▼ 10.06% |