Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/os-materializecss-popup/includes/admin/osmp-widget.php+90
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼56.80ms] Passed 4 tests
An overview of server-side resources used by OS Materializecss PopUp
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.35 | 5.83 ▼38.52 |
Dashboard /wp-admin | 2.14 ▼1.21 | 6.37 ▼50.60 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 7.65 ▼41.46 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 5.74 ▼96.60 |
Media Library /wp-admin/upload.php | 2.14 ▼1.10 | 5.64 ▼29.40 |
OS PopUp /wp-admin/edit.php?post_type=osmp-popup | 2.14 | 5.86 |
Add New /wp-admin/post-new.php?post_type=osmp-popup | 2.14 | 7.35 |
About /wp-admin/edit.php?post_type=osmp-popup&page=osmp-about-developer | 2.14 | 6.70 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_osmp_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
OS Materializecss PopUp: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,106 ▲360 | 14.79 ▲0.05 | 18.67 ▲16.51 | 44.26 ▼0.36 |
Dashboard /wp-admin | 2,258 ▲67 | 5.10 ▲0.03 | 110.40 ▲7.03 | 42.63 ▲0.65 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.32 ▲0.34 | 41.66 ▲1.32 | 35.43 ▼1.98 |
Add New Post /wp-admin/post-new.php | 1,556 ▲14 | 17.73 ▼0.70 | 597.32 ▼19.34 | 33.15 ▼21.88 |
Media Library /wp-admin/upload.php | 1,437 ▲46 | 4.47 ▲0.23 | 99.52 ▲3.26 | 42.35 ▼3.42 |
OS PopUp /wp-admin/edit.php?post_type=osmp-popup | 1,115 | 2.26 | 36.39 | 26.86 |
Add New /wp-admin/post-new.php?post_type=osmp-popup | 2,437 | 3.15 | 88.83 | 96.95 |
About /wp-admin/edit.php?post_type=osmp-popup&page=osmp-about-developer | 1,031 | 1.89 | 30.54 | 29.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/os-materializecss-popup/includes/admin/osmp-widget.php+90
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_osmp_widget
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=osmp-popup&page=osmp-about-developer
- > Deprecated in wp-content/plugins/os-materializecss-popup/includes/admin/osmp-widget.php+90
Function create_function() is deprecated
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=osmp-popup&page=osmp-about-developer
- > Warning in wp-content/plugins/os-materializecss-popup/includes/admin/osmp-widget.php+7
Use of undefined constant osmp_TEXT_DOMAIN - assumed 'osmp_TEXT_DOMAIN' (this will throw an Error in a future version of PHP)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=osmp-popup&page=osmp-about-developer
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in osmpWidget is deprecated since version 4.3.0! Use __construct() instead.
- 9 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=osmp-popup
- > Warning in wp-content/plugins/os-materializecss-popup/includes/admin/meta-boxes/views/osmp.settings.php+39
Use of undefined constant OSPT_TEXT_DOMAIN - assumed 'OSPT_TEXT_DOMAIN' (this will throw an Error in a future version of PHP)
- 9 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=osmp-popup
- > Notice in wp-content/plugins/os-materializecss-popup/includes/admin/meta-boxes/views/osmp.designs.php+54
Undefined variable: design
- 9 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=osmp-popup
- > Notice in wp-content/plugins/os-materializecss-popup/includes/admin/meta-boxes/views/osmp.designs.php+54
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'osmpPostTypes' not found in wp-content/plugins/os-materializecss-popup/includes/templates/osmp.design-4.php:6
- > PHP Fatal error
Uncaught Error: Class 'osmpPostTypes' not found in wp-content/plugins/os-materializecss-popup/includes/admin/meta-boxes/views/osmp.settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'osmpPostTypes' not found in wp-content/plugins/os-materializecss-popup/includes/templates/osmp.design-2.php:6
- > PHP Fatal error
Uncaught Error: Class 'osmpPostTypes' not found in wp-content/plugins/os-materializecss-popup/includes/admin/meta-boxes/views/osmp.designs.php:2
- > PHP Fatal error
Uncaught Error: Class 'osmpPostTypes' not found in wp-content/plugins/os-materializecss-popup/includes/admin/meta-boxes/views/osmp.shortcode.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/os-materializecss-popup/includes/admin/osmp-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'osmpPostTypes' not found in wp-content/plugins/os-materializecss-popup/includes/admin/meta-boxes/views/osmp.general.php:2
- > PHP Fatal error
Uncaught Error: Class 'osmpPostTypes' not found in wp-content/plugins/os-materializecss-popup/includes/templates/osmp.design-3.php:6
- > PHP Fatal error
Uncaught Error: Class 'osmpPostTypes' not found in wp-content/plugins/os-materializecss-popup/includes/templates/osmp.design-1.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add images for these screenshots: #1 (OS Materializecss PopUp - PopUp listing interface), #2 (OS Materializecss PopUp - Add new popup interface), #3 (OS Materializecss PopUp - Design 1), #4 (OS Materializecss PopUp - Design 2), #5 (OS Materializecss PopUp - Design 3), #6 (OS Materializecss PopUp - Design 4)
os-materializecss-popup/os-materializecss-popup.php Passed 13 tests
The main PHP file in "OS Materializecss PopUp" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
115 characters long description:
OS Materializecss PopUp is the colorful, responsive, customizable popup plugin for WordPress using materialize css.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,380 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 46 | 26 | 1,273 |
PHP | 17 | 234 | 360 | 990 |
JavaScript | 5 | 32 | 34 | 117 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 3.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 50 | |
▷ Static methods | 3 | 6.00% |
▷ Public methods | 48 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
9 PNG files occupy 0.34MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 22.18KB | 7.46KB | ▼ 66.38% |
images/social.png | 1.61KB | 1.12KB | ▼ 30.45% |
screenshot-2.png | 143.10KB | 45.73KB | ▼ 68.04% |
screenshot-3.png | 47.64KB | 16.34KB | ▼ 65.71% |
images/category.png | 0.48KB | 0.34KB | ▼ 28.63% |