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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.77 ▼0.95 | 4.73 ▼15.72 |
Dashboard /wp-admin | 1.79 ▼1.26 | 5.27 ▼43.86 |
Posts /wp-admin/edit.php | 1.79 ▼1.32 | 5.60 ▼31.67 |
Add New Post /wp-admin/post-new.php | 1.79 ▼3.64 | 6.29 ▼658.20 |
Media Library /wp-admin/upload.php | 1.79 ▼1.22 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 15.86 ▲0.42 | 9.66 ▲0.62 | 51.23 ▲4.69 |
Dashboard /wp-admin | 2,993 ▲62 | 5.91 ▲0.00 | 136.73 ▼12.77 | 114.01 ▲4.69 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.71 ▲0.01 | 64.99 ▼3.46 | 82.50 ▼9.87 |
Add New Post /wp-admin/post-new.php | 1,513 ▼359 | 18.45 ▼0.68 | 374.68 ▼18.27 | 114.16 ▲5.51 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.00 ▼0.03 | 151.94 ▼2.24 | 112.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 11 | 11 | 169 |
CSS | 1 | 0 | 0 | 3 |
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 code | 0.18 |
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 | 6 | |
▷ Named functions | 6 | 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
There were not PNG files found in your plugin