Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/page-layered-popup/page-layered-popup.php+20
Use of undefined constant Page_Layered_Popup - assumed 'Page_Layered_Popup' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼2.47MB] [CPU: ▼350.88ms] Passed 4 tests
This is a short check of server-side resources used by Page Layered Popup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.90 ▼1.62 | 4.42 ▼52.08 |
Dashboard /wp-admin | 1.92 ▼1.49 | 4.18 ▼31.02 |
Posts /wp-admin/edit.php | 1.92 ▼1.72 | 4.16 ▼46.26 |
Add New Post /wp-admin/post-new.php | 1.92 ▼5.05 | 3.86 ▼1,274.15 |
Media Library /wp-admin/upload.php | 1.92 ▼1.38 | 8.45 ▼21.61 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Page Layered Popup
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲43 | 15.83 ▼0.19 | 6.71 ▲0.92 | 2.67 ▼0.10 |
Dashboard /wp-admin | 2,895 ▲35 | 6.11 ▼0.08 | 115.79 ▼6.78 | 157.56 ▼0.95 |
Posts /wp-admin/edit.php | 2,694 ▲6 | 3.24 ▼0.00 | 92.81 ▲11.58 | 142.52 ▼11.26 |
Add New Post /wp-admin/post-new.php | 1,685 ▲24 | 18.21 ▲2.12 | 405.10 ▼12.42 | 177.09 ▲24.12 |
Media Library /wp-admin/upload.php | 1,701 ▲6 | 5.52 ▼0.01 | 144.82 ▲4.19 | 182.33 ▼8.26 |
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
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/page-layered-popup/page-layered-popup.php+20
Use of undefined constant Page_Layered_Popup - assumed 'Page_Layered_Popup' (this will throw an Error in a future version of PHP)
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
The smoke test was a success, however most plugin functionality was not tested
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 items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/page-layered-popup/page-layered-popup.php:12
- > 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: post, welcome, mat, popup
page-layered-popup/page-layered-popup.php Passed 13 tests
The main PHP script in "Page Layered Popup" version 1.0.7 is automatically included on every request by WordPress
107 characters long description:
Extends the layered popup plugin with the ability to show a page as popup, as well as show as a welcome mat
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin204 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 32 | 160 |
JavaScript | 1 | 2 | 3 | 44 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 11 | 100.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin