Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.14ms] Passed 4 tests
This is a short check of server-side resources used by Old-to-New Agoda Link Converter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.04 | 36.61 ▼5.20 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.24 ▼4.12 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 44.12 ▼2.96 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 83.46 ▼8.28 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.22 ▼1.86 |
Server storage [IO: ▲10.04MB] [DB: ▲0.95MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_agoda_countries |
wp_agoda_settings |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Old-to-New Agoda Link Converter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲89 | 13.30 ▼1.26 | 4.50 ▲2.66 | 42.48 ▼6.44 |
Dashboard /wp-admin | 2,233 ▲42 | 5.90 ▲0.82 | 101.55 ▼15.02 | 39.84 ▼6.81 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.02 ▲0.02 | 36.28 ▼0.09 | 36.31 ▲2.89 |
Add New Post /wp-admin/post-new.php | 1,535 ▼7 | 17.53 ▼0.76 | 694.32 ▲60.95 | 71.80 ▲9.36 |
Media Library /wp-admin/upload.php | 1,412 ▲21 | 4.23 ▲0.03 | 98.94 ▲1.59 | 41.88 ▼0.42 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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 everything seems fine, this is not 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
Almost there! Just 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 a member function get_row() on null in wp-content/plugins/old-to-new-agoda-link-converter/includes/settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Tags: There are too many tags (15 tag instead of maximum 10)
- Screenshots: A description for screenshot #2 is required in old-to-new-agoda-link-converter/assets to your readme.txt
old-to-new-agoda-link-converter/agoda.php 85% from 13 tests
"Old-to-New Agoda Link Converter" version 1.7.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 252 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("old-to-new-agoda-link-converter.php" instead of "agoda.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
Good job! No executable or dangerous file extensions detected602 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 232 | 143 | 580 |
SVG | 1 | 0 | 1 | 22 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 25.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 96.55% |
▷ Protected methods | 1 | 3.45% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/agoda-logo.png | 1.07KB | 1.21KB | 0.00% |
images/agoda-logo-flat.png | 22.93KB | 12.27KB | ▼ 46.46% |
includes/agoda-logo.png | 1.07KB | 1.21KB | 0.00% |