Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼1.54ms] Passed 4 tests
This is a short check of server-side resources used by Sapphire Popups
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.62 ▼5.96 |
Dashboard /wp-admin | 3.41 ▲0.11 | 56.07 ▲4.25 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.70 ▼3.67 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 97.77 ▼0.34 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 40.94 ▲3.81 |
Popups /wp-admin/edit.php?post_type=sapphire_popups | 3.38 | 40.20 |
Settings /wp-admin/admin.php?page=sapphire-popups-settings | 3.31 | 35.03 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Sapphire Popups
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.14 ▼0.13 | 1.71 ▼0.25 | 43.33 ▼3.94 |
Dashboard /wp-admin | 2,227 ▲50 | 5.56 ▼0.07 | 89.64 ▼12.31 | 44.75 ▲0.77 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 2.02 ▲0.03 | 36.23 ▲1.49 | 36.71 ▲1.93 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.49 ▲0.37 | 634.20 ▼19.62 | 51.25 ▼2.91 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.17 ▼0.02 | 111.38 ▲8.20 | 45.45 ▲0.69 |
Popups /wp-admin/edit.php?post_type=sapphire_popups | 1,093 | 1.97 | 31.15 | 28.61 |
Settings /wp-admin/admin.php?page=sapphire-popups-settings | 870 | 2.03 | 26.07 | 30.94 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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 0% 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sapphire-popups/admin/partials/sapphire-popups-admin-section-popups.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sapphire-popups/admin/partials/sapphire-popups-admin-page.php:13
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: classic editor, easy to use, popups, no cookies, gutenberg
sapphire-popups/sapphire-popups.php Passed 13 tests
The main file in "Sapphire Popups" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
42 characters long description:
A simple yet powerful solution for popups.
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 plugin539 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 264 | 525 | 328 |
JavaScript | 2 | 81 | 66 | 123 |
CSS | 2 | 8 | 9 | 61 |
Markdown | 1 | 18 | 0 | 26 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 1 | 3.33% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 31.52KB | 9.60KB | ▼ 69.54% |
screenshot-1.png | 40.79KB | 12.30KB | ▼ 69.85% |