Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.89ms] Passed 4 tests
A check of server-side resources used by Magic Popups - Custom and Lightweight Popups
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.46 ▲2.10 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.90 ▼5.06 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.68 ▼5.13 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 78.81 ▼19.58 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.12 ▼5.79 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Magic Popups - Custom and Lightweight Popups
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲169 | 13.58 ▼0.79 | 4.93 ▲3.25 | 39.06 ▼1.09 |
Dashboard /wp-admin | 2,238 ▲50 | 4.87 ▼0.05 | 108.78 ▲6.99 | 41.92 ▲1.80 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.06 ▲0.01 | 42.51 ▲4.69 | 40.38 ▲4.87 |
Add New Post /wp-admin/post-new.php | 1,546 ▲12 | 23.19 ▲0.15 | 595.92 ▼74.67 | 48.68 ▼5.06 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.21 ▼0.07 | 94.84 ▼3.26 | 42.31 ▼0.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/magic-popups-customizable-and-lightweight/admin/magic-popups-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 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
9 plugin tags: pop up, fast, simple, custom, popups...
magic-popups-customizable-and-lightweight/magic-popups.php 69% from 13 tests
The main PHP file in "Magic Popups - Custom and Lightweight Popups" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("magic-popups-customizable-and-lightweight.php" instead of "magic-popups.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin12,245 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 34 | 441 | 10,794 |
CSS | 2 | 104 | 119 | 1,059 |
PHP | 10 | 123 | 490 | 392 |
PHP code Passed 2 tests
This is a short overview 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.20 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 22 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 15.38% |
Functions | 9 | |
▷ Named functions | 3 | 33.33% |
▷ Anonymous functions | 6 | 66.67% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin