Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼143.57ms] Passed 4 tests
Server-side resources used by Tripadvisor Shortcode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 34.63 ▲9.75 |
Dashboard /wp-admin | 3.08 ▲0.03 | 41.80 ▼5.61 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 46.73 ▼5.52 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 95.81 ▼557.94 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 30.43 ▼5.19 |
TripAdvisor SC /wp-admin/options-general.php?page=tripadvisorsc | 2.99 | 27.43 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Tripadvisor Shortcode: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.80 ▲0.34 | 8.87 ▲2.78 | 52.34 ▼0.81 |
Dashboard /wp-admin | 2,978 ▲47 | 5.87 ▼0.13 | 147.81 ▼5.63 | 122.53 ▲10.51 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 70.07 ▲0.72 | 97.96 ▲3.56 |
Add New Post /wp-admin/post-new.php | 1,686 ▲71 | 18.74 ▼2.27 | 381.87 ▲98.37 | 107.67 ▼4.52 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.00 ▲0.01 | 167.24 ▲16.61 | 116.04 ▼3.38 |
TripAdvisor SC /wp-admin/options-general.php?page=tripadvisorsc | 1,078 | 2.05 | 57.55 | 71.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
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 items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tripadvisor-shortcode/tripadvisorsc.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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: Add an image for screenshot #1 (TripAdvisor feeds displayed by the shortcode.)
- Contributors: Plugin contributors not specified
tripadvisor-shortcode/tripadvisorsc.php 92% from 13 tests
The main file in "Tripadvisor Shortcode" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tripadvisor-shortcode.php" instead of "tripadvisorsc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected79 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 44 | 24 | 79 |
PHP code Passed 2 tests
An overview 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.62 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin