78% pelepay-standalone-embedder

Code Review | Pelepay standalone embedder

WordPress plugin Pelepay standalone embedder scored 78% from 54 tests.

About plugin

  • Plugin page: pelepay-standalon...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4
  • WordPress version: 6.3.1
  • First release: Dec 11, 2012
  • Latest release: Jan 30, 2013
  • Number of updates: 8
  • Update frequency: every 6.5 days
  • Top authors: etamaro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 743 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.79 ▼8.72
Dashboard /wp-admin3.36 ▲0.0544.41 ▼6.02
Posts /wp-admin/edit.php3.41 ▲0.0546.47 ▼0.59
Add New Post /wp-admin/post-new.php3.14 ▼2.7439.27 ▼50.68
Media Library /wp-admin/upload.php3.28 ▲0.0536.07 ▲1.71
Pelepay Configuration /wp-admin/options-general.php?page=pelepay-settings-menu3.2230.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.29 ▼1.121.69 ▼0.4742.49 ▼6.87
Dashboard /wp-admin2,207 ▲195.91 ▲1.04105.73 ▼9.3942.56 ▼2.21
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0039.74 ▲3.3135.03 ▼0.13
Add New Post /wp-admin/post-new.php6,484 ▲4,95120.27 ▼2.71881.43 ▲219.6953.12 ▲0.27
Media Library /wp-admin/upload.php1,395 ▲104.26 ▲0.0697.92 ▼3.5240.47 ▼7.27
Pelepay Configuration /wp-admin/options-general.php?page=pelepay-settings-menu8732.0224.0026.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

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 ("")
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP24933295

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 code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
error.png1.43KB0.36KB▼ 74.81%
Error_Icon.png12.65KB3.95KB▼ 68.80%