10% simple-self-styleable-pop-up

Code Review | Simple Self-Styleable Pop Up

WordPress plugin Simple Self-Styleable Pop Up scored 10% from 54 tests.

About plugin

  • Plugin page: simple-self-style...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.3.1
  • WordPress version: 5.8.1
  • First release: Nov 20, 2014
  • Latest release: Nov 17, 2015
  • Number of updates: 9
  • Update frequency: every 40.9 days
  • Top authors: MichaelNi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,336 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/simple-self-styleable-pop-up/ssspu.php+221
    syntax error, unexpected end of file

Server metrics [RAM: ▼0.00MB] [CPU: ▼138.03ms] Passed 4 tests

An overview of server-side resources used by Simple Self-Styleable Pop Up
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.38 ▲9.20
Dashboard /wp-admin3.06 ▲0.0052.62 ▲6.89
Posts /wp-admin/edit.php3.11 ▲0.0044.53 ▲0.56
Add New Post /wp-admin/post-new.php5.42 ▼0.0287.41 ▼560.24
Media Library /wp-admin/upload.php3.00 ▲0.0031.94 ▲0.66

Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Simple Self-Styleable Pop Up
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.89 ▲0.3110.34 ▲1.5450.08 ▼0.52
Dashboard /wp-admin2,967 ▲335.88 ▼0.03132.31 ▼12.36118.22 ▲2.90
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0167.69 ▲2.6093.72 ▲1.13
Add New Post /wp-admin/post-new.php1,872 ▲25719.11 ▼2.91380.92 ▲110.51109.59 ▼1.42
Media Library /wp-admin/upload.php1,813 ▲35.04 ▲0.01142.21 ▼9.34117.00 ▼3.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% 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)
Good news, no errors were detected

SRP 50% 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/simple-self-styleable-pop-up/ssspu.php on line 221

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (SSSPU provides a clean and easy-to-use backend for customizing. Default presets allow you to style your own pop-up within minutes.) image not found
Please take inspiration from this readme.txt

simple-self-styleable-pop-up/ssspu.php 92% from 13 tests

Analyzing the main PHP file in "Simple Self-Styleable Pop Up" version 0.6
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-self-styleable-pop-up.php" instead of "ssspu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin181 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12232167
JavaScript11014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions1
▷ Named functions1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/yes.png0.90KB0.99KB0.00%