Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/triptrus-search-widget/triptrus-search.php+111
Function create_function() is deprecated
Server metrics [RAM: ▼1.92MB] [CPU: ▼55.76ms] Passed 4 tests
An overview of server-side resources used by TripTrus Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 4.62 ▼37.08 |
Dashboard /wp-admin | 2.10 ▼1.25 | 5.65 ▼48.92 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.22 ▼38.19 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 7.05 ▼98.86 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.33 ▼27.78 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_triptrus_search |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for TripTrus Search
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.18 | 1.82 ▲0.05 | 44.65 ▼0.36 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.94 | 100.49 ▼7.94 | 38.44 ▲0.61 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.01 ▼0.04 | 35.94 ▼6.99 | 31.76 ▼2.09 |
Add New Post /wp-admin/post-new.php | 1,529 ▲7 | 23.30 ▲0.13 | 648.19 ▲30.44 | 84.82 ▲22.30 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.21 ▼0.13 | 98.80 ▼0.30 | 42.75 ▼2.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/triptrus-search-widget/triptrus-search.php+111
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_triptrus_search
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% 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 everything seems fine, this is not 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/triptrus-search-widget/triptrus-search.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
3 plugin tags: indonesia, travel, triptrus
triptrus-search-widget/triptrus-search.php 92% from 13 tests
Analyzing the main PHP file in "TripTrus Search" version 1.1
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("triptrus-search-widget.php" instead of "triptrus-search.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected171 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 3 | 9 | 100 |
CSS | 1 | 0 | 0 | 71 |
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.25 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
There were not PNG files found in your plugin