10% pr-splash

Code Review | PR Splash

WordPress plugin PR Splash scored 10% from 54 tests.

About plugin

  • Plugin page: pr-splash
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-3.8
  • WordPress version: 5.8.1
  • First release: Jan 2, 2014
  • Latest release: Apr 12, 2014
  • Number of updates: 12
  • Update frequency: every 8.3 days
  • Top authors: pauloiankoski (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 1,566 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/pr-splash/pr-admin-functions.php+3
    Undefined index: page

Server metrics [RAM: ▼1.86MB] [CPU: ▼191.36ms] Passed 4 tests

A check of server-side resources used by PR Splash
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.77 ▼0.954.73 ▼15.72
Dashboard /wp-admin1.79 ▼1.265.27 ▼43.86
Posts /wp-admin/edit.php1.79 ▼1.325.60 ▼31.67
Add New Post /wp-admin/post-new.php1.79 ▼3.646.29 ▼658.20
Media Library /wp-admin/upload.php1.79 ▼1.226.88 ▼31.69

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for PR Splash
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12715.86 ▲0.429.66 ▲0.6251.23 ▲4.69
Dashboard /wp-admin2,993 ▲625.91 ▲0.00136.73 ▼12.77114.01 ▲4.69
Posts /wp-admin/edit.php2,759 ▲202.71 ▲0.0164.99 ▼3.4682.50 ▼9.87
Add New Post /wp-admin/post-new.php1,513 ▼35918.45 ▼0.68374.68 ▼18.27114.16 ▲5.51
Media Library /wp-admin/upload.php1,827 ▲205.00 ▼0.03151.94 ▼2.24112.45 ▼10.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/pr-splash/pr-admin-functions.php+3
    Undefined index: page

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pr-splash/pr-front-functions.php:94
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pr-splash/pr-admin-functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pr-splash/pr-admin-functions.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: popup, modal, splash, pop up

pr-splash/pr-splash.php Passed 13 tests

The main PHP script in "PR Splash" version 1.0.4 is automatically included on every request by WordPress
66 characters long description:
Plugin para exibição de mensagens ou imagens em forma de splash.

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
No dangerous file extensions were detected172 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31111169
CSS1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions6
▷ Named functions6100.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
There were not PNG files found in your plugin