Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.90ms] Passed 4 tests
Analyzing server-side resources used by WP Magnific Popup
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.37 ▼0.18 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.34 ▲3.66 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 42.53 ▼6.12 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.24 ▼20.58 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 33.63 ▼0.73 |
WP Magnific Popup /wp-admin/options-general.php?page=wp-magnific-popup | 3.21 | 28.24 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
wpmp_iframe_settings |
wpmp_image_settings |
widget_recent-comments |
widget_recent-posts |
wpmp_div_settings |
wpmp_gallery_settings |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Magnific Popup
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲150 | 13.61 ▼0.82 | 7.47 ▲5.58 | 38.35 ▲1.60 |
Dashboard /wp-admin | 2,210 ▲18 | 4.86 ▼0.29 | 105.00 ▼11.23 | 43.14 ▲1.02 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 2.05 ▲0.06 | 33.25 ▼7.77 | 36.13 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.60 ▼5.57 | 675.73 ▲67.20 | 55.89 ▲2.08 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▲0.05 | 95.60 ▼2.94 | 40.78 ▼7.20 |
WP Magnific Popup /wp-admin/options-general.php?page=wp-magnific-popup | 1,107 | 2.06 | 47.30 | 39.72 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 10 options
- wpmp_div_settings
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- wpmp_iframe_settings
- wpmp_image_settings
- widget_theysaidso_widget
- theysaidso_admin_options
- wpmp_gallery_settings
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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: Call to undefined function add_action() in wp-content/plugins/wp-magnific-popup/wp_magnific_popup.php:15
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-magnific-popup ===
)
wp-magnific-popup/wp_magnific_popup.php 92% from 13 tests
The main PHP script in "WP Magnific Popup" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-magnific-popup.php" instead of "wp_magnific_popup.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin651 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 35 | 6 | 310 |
PHP | 1 | 32 | 10 | 237 |
JavaScript | 3 | 4 | 3 | 63 |
PO File | 1 | 12 | 12 | 41 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin