Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.13ms] Passed 4 tests
A check of server-side resources used by Makhlas
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.23 ▼5.94 |
Dashboard /wp-admin | 3.37 ▲0.02 | 44.24 ▼17.01 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 48.23 ▲6.41 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 83.16 ▼16.76 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.33 ▲3.21 |
Settings /wp-admin/admin.php?page=makhlas/admin/view.php | 3.27 | 410.95 |
Converter /wp-admin/admin.php?page=makhlas/admin/converter.php | 3.26 | 30.39 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
makhlas_default_domain |
Browser metrics Passed 4 tests
A check of browser resources used by Makhlas
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 13.31 ▼1.29 | 1.64 ▼0.09 | 41.10 ▼6.50 |
Dashboard /wp-admin | 2,226 ▲41 | 5.81 ▲0.02 | 103.28 ▲0.57 | 38.48 ▼0.88 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.01 ▼0.00 | 36.72 ▼4.35 | 35.30 ▼4.39 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 23.17 ▲4.86 | 657.79 ▼9.11 | 57.20 ▲0.53 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.31 ▲0.07 | 94.51 ▼2.73 | 40.95 ▼1.21 |
Settings /wp-admin/admin.php?page=makhlas/admin/view.php | 842 | 2.03 | 26.31 | 26.58 |
Converter /wp-admin/admin.php?page=makhlas/admin/converter.php | 802 | 2.04 | 24.65 | 25.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=makhlas/admin/converter.php
- > Notice in wp-content/plugins/makhlas/admin/converter.php+14
Undefined variable: total
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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/makhlas/admin/converter.php:2
- > PHP Fatal error
Uncaught Error: Class 'Makhlas_Plugin' not found in wp-content/plugins/makhlas/admin/view.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: link, url shortener, url shortening, short permalink, shortlink...
makhlas/makhlas.php Passed 13 tests
The main file in "Makhlas" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
29 characters long description:
URL shortening for WordPress.
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
Good job! No executable or dangerous file extensions detected462 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 81 | 154 | 411 |
PO File | 1 | 16 | 23 | 51 |
PHP code Passed 2 tests
A short review 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.36 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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