Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.90ms] Passed 4 tests
An overview of server-side resources used by Prakiraan cuaca
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.57 ▲2.04 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.55 ▼9.89 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 48.45 ▼3.45 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 87.87 ▼13.18 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.53 ▼1.07 |
Server storage [IO: ▲3.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Prakiraan cuaca
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 13.52 ▼0.88 | 10.69 ▲8.67 | 45.93 ▲0.67 |
Dashboard /wp-admin | 2,202 ▲25 | 5.61 ▲0.01 | 84.50 ▼4.11 | 40.23 ▼5.93 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▲0.05 | 34.90 ▼2.34 | 33.29 ▼8.28 |
Add New Post /wp-admin/post-new.php | 1,530 ▼5 | 23.70 ▲5.51 | 695.51 ▼51.80 | 57.10 ▼16.92 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.12 ▲0.06 | 101.99 ▼12.30 | 46.49 ▼3.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
SRP 0% 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× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/prakiraan-cuaca/admin/partials/prakiraan-cuaca-dan-info-gempa-admin-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/prakiraan-cuaca/public/partials/prakiraan-cuaca-dan-info-gempa-public-display.php:46
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== prakiraan-cuaca ===
)
prakiraan-cuaca/prakiraan-cuaca-dan-info-gempa.php 85% from 13 tests
"Prakiraan cuaca" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("prakiraan-cuaca.php" instead of "prakiraan-cuaca-dan-info-gempa.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected380 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 163 | 378 | 333 |
SVG | 1 | 1 | 0 | 33 |
CSS | 3 | 2 | 10 | 7 |
JavaScript | 3 | 5 | 60 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 2.88MB with 2.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 46.00KB | 6.73KB | ▼ 85.37% |
assets/icon-128x128.png | 30.95KB | 3.56KB | ▼ 88.49% |
assets/banner-772x250-rtl.png | 227.91KB | 101.37KB | ▼ 55.52% |
assets/banner-772x250.png | 227.91KB | 101.37KB | ▼ 55.52% |
assets/screenshot-2.png | 432.57KB | 132.11KB | ▼ 69.46% |