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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.98ms] Passed 4 tests
Server-side resources used by Alojapro Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.24 ▲3.09 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.72 ▼2.98 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.93 ▼1.52 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 86.82 ▼10.76 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 38.85 ▼0.64 |
Server storage [IO: ▲3.45MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Alojapro Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲233 | 14.26 ▼0.10 | 14.57 ▲12.72 | 41.30 ▼1.85 |
Dashboard /wp-admin | 2,215 ▲27 | 5.86 ▲0.97 | 104.24 ▼5.66 | 41.39 ▼3.71 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.02 ▲0.02 | 32.83 ▼5.05 | 34.87 ▲1.06 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 17.59 ▼0.10 | 669.65 ▼24.86 | 58.25 ▼0.88 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.20 ▼0.03 | 105.16 ▼12.77 | 48.83 ▲2.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/alojapro-widget/alojapro-widget.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
Attributes that need to be fixed:
- Screenshots: A description for screenshot #3 is missing in alojapro-widget/assets to your readme.txt
alojapro-widget/alojapro-widget.php Passed 13 tests
The main file in "Alojapro Widget" v. 1.1.24 serves as a complement to information provided in readme.txt and as the entry point to the plugin
27 characters long description:
Widget de reservas Alojapro
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
There were no executable files found in this plugin22,017 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 3,286 | 45 | 11,152 |
SVG | 3 | 0 | 12 | 8,954 |
PO File | 10 | 209 | 285 | 546 |
PHP | 4 | 63 | 100 | 496 |
Sass | 7 | 59 | 4 | 438 |
JavaScript | 12 | 59 | 64 | 404 |
JSON | 1 | 0 | 0 | 27 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.25% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
css/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
css/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |