Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.66MB] [CPU: ▼16.50ms] Passed 4 tests
Analyzing server-side resources used by Pelepay standalone embedder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 33.79 ▼8.72 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.41 ▼6.02 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 46.47 ▼0.59 |
Add New Post /wp-admin/post-new.php | 3.14 ▼2.74 | 39.27 ▼50.68 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.07 ▲1.71 |
Pelepay Configuration /wp-admin/options-general.php?page=pelepay-settings-menu | 3.22 | 30.23 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 13 new options
New WordPress options |
---|
pelepay_cancel_url |
pelepay_gateway_url |
widget_recent-posts |
widget_theysaidso_widget |
pelepay_failure_url |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
pelepay_success_url |
pelepay_payment_number |
... |
Browser metrics Passed 4 tests
Pelepay standalone embedder: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.29 ▼1.12 | 1.69 ▼0.47 | 42.49 ▼6.87 |
Dashboard /wp-admin | 2,207 ▲19 | 5.91 ▲1.04 | 105.73 ▼9.39 | 42.56 ▼2.21 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.00 | 39.74 ▲3.31 | 35.03 ▼0.13 |
Add New Post /wp-admin/post-new.php | 6,484 ▲4,951 | 20.27 ▼2.71 | 881.43 ▲219.69 | 53.12 ▲0.27 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.26 ▲0.06 | 97.92 ▼3.52 | 40.47 ▼7.27 |
Pelepay Configuration /wp-admin/options-general.php?page=pelepay-settings-menu | 873 | 2.02 | 24.00 | 26.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 13 options in the database
- can_compress_scripts
- db_upgraded
- pelepay_success_url
- widget_recent-comments
- theysaidso_admin_options
- pelepay_button_url
- pelepay_business_method
- widget_recent-posts
- pelepay_cancel_url
- pelepay_failure_url
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=pelepay-settings-menu
- > Notice in wp-content/plugins/pelepay-standalone-embedder/pelepay_wp_plugin.php+86
Undefined variable: pelepay_gateway_url
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/pelepay-standalone-embedder/pelepay_wp_plugin.php:12
- > 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 88% 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
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (http://eoi-dev.com/pelepay_screenshots/blog_page.jpg), #2 (http://eoi-dev.com/pelepay_screenshots/blog_page_edit.jpg), #3 (http://eoi-dev.com/pelepay_screenshots/configuration.jpg), #4 (http://eoi-dev.com/pelepay_screenshots/shortcodes.jpg)
- Donate link: Invalid URI found ("")
pelepay-standalone-embedder/pelepay_wp_plugin.php 92% from 13 tests
"Pelepay standalone embedder" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("pelepay-standalone-embedder.php" instead of "pelepay_wp_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin295 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 49 | 33 | 295 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 11 | |
▷ Named functions | 11 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
error.png | 1.43KB | 0.36KB | ▼ 74.81% |
Error_Icon.png | 12.65KB | 3.95KB | ▼ 68.80% |