Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼38.48ms] Passed 4 tests
Server-side resources used by Uptopromo Publisher Indonesia
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.26 ▼4.62 |
Dashboard /wp-admin | 3.01 ▼0.30 | 22.25 ▼35.53 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 24.57 ▼31.51 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 23.12 ▼71.96 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 20.83 ▼14.93 |
Server storage [IO: ▲0.06MB] [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: 5 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
promo_userhash |
promo_password |
promo_token |
promo_platformid |
promo_email |
widget_recent-posts |
db_upgraded |
... |
Browser metrics Passed 4 tests
Uptopromo Publisher Indonesia: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 14.00 ▼0.40 | 7.01 ▲5.29 | 44.66 ▼1.76 |
Dashboard /wp-admin | 2,218 ▲66 | 4.85 ▼0.85 | 107.22 ▲7.20 | 37.60 ▼6.23 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 1.99 ▼0.06 | 39.27 ▲1.54 | 35.66 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,523 ▲9 | 17.81 ▲0.26 | 662.17 ▼25.24 | 65.81 ▲10.78 |
Media Library /wp-admin/upload.php | 1,397 ▲18 | 4.16 ▼0.01 | 104.52 ▼3.10 | 45.02 ▼1.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5453
Function add_utility_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/uptopromo-publisher-indonesia/uptopromo.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== uptopromo-publisher-indonesia ===
)
uptopromo-publisher-indonesia/uptopromo.php 85% from 13 tests
The principal PHP file in "Uptopromo Publisher Indonesia" v. 0.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 220 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("uptopromo-publisher-indonesia.php" instead of "uptopromo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin920 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 190 | 38 | 901 |
JavaScript | 1 | 3 | 0 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 105.00 |
▷ Minimum class complexity | 53.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 8.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.71% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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 are no PNG files in this plugin