Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲2.59MB] [CPU: ▼313.77ms] Passed 4 tests
Analyzing server-side resources used by Mageewp Page Layout
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.33 ▲2.82 | 68.28 ▲13.54 |
Dashboard /wp-admin | 6.00 ▲2.59 | 52.34 ▲19.01 |
Posts /wp-admin/edit.php | 6.22 ▲2.58 | 54.95 ▲19.76 |
Add New Post /wp-admin/post-new.php | 9.51 ▲2.54 | 113.62 ▼1,298.94 |
Media Library /wp-admin/upload.php | 5.95 ▲2.65 | 38.48 ▲11.32 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 7.24 | 57.83 |
Server storage [IO: ▲8.64MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 528 new files
Database: no new tables, 4 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_mpl_widget_content |
mpl_do_activation_redirect |
Browser metrics Passed 4 tests
A check of browser resources used by Mageewp Page Layout
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,198 ▲476 | 18.52 ▲2.87 | 17.54 ▲11.33 | 2.73 ▲0.52 |
Dashboard /wp-admin | 3,118 ▲264 | 7.95 ▲1.77 | 142.62 ▲4.34 | 176.22 ▲17.33 |
Posts /wp-admin/edit.php | 2,947 ▲256 | 5.14 ▲1.91 | 78.15 ▲12.38 | 159.37 ▲14.53 |
Add New Post /wp-admin/post-new.php | 1,684 ▲23 | 21.74 ▲5.14 | 400.26 ▼20.85 | 206.69 ▲46.06 |
Media Library /wp-admin/upload.php | 1,726 ▲28 | 5.60 ▲0.07 | 107.65 ▼37.03 | 213.57 ▲23.37 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 7,525 | 20.53 | 501.52 | 165.01 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 4 options in the database
- mpl_do_activation_redirect
- widget_recent-comments
- widget_recent-posts
- widget_mpl_widget_content
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
Trying to get property 'title' of non-object
SRP 0% 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
The following issues need your attention
- 11× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/mageewp-page-layout/includes/metabox/includes/admin-fields/field_link.php
- > /wp-content/plugins/mageewp-page-layout/includes/metabox/includes/admin-fields/field_datetime.php
- > /wp-content/plugins/mageewp-page-layout/includes/metabox/includes/admin-fields/field_color_picker.php
- > /wp-content/plugins/mageewp-page-layout/includes/metabox/includes/admin-fields/field_image_picker.php
- > /wp-content/plugins/mageewp-page-layout/includes/metabox/includes/admin-fields/field_icon_picker.php
- > /wp-content/plugins/mageewp-page-layout/shortcodes/live_editor/mpl_row_inner.php
- > /wp-content/plugins/mageewp-page-layout/includes/metabox/includes/admin-fields/field_default.php
- > /wp-content/plugins/mageewp-page-layout/includes/metabox/includes/admin-fields/field_map.php
- > /wp-content/plugins/mageewp-page-layout/includes/metabox/includes/admin-fields/field_image_select.php
- > /wp-content/plugins/mageewp-page-layout/includes/metabox/includes/admin-fields/field_repeater.php
- 75× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mageewp-page-layout/shortcodes/mpl_section_contact_4.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/mageewp-page-layout/shortcodes/mpl_section_slider.php:19
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/mageewp-page-layout/shortcodes/mpl_section_custom.php on line 7
- > PHP Warning
Use of undefined constant MPL_PATH - assumed 'MPL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mageewp-page-layout/includes/metabox/metabox.php on line 98
- > PHP Warning
include(MPL_PATH/includes/metabox/includes/admin-fields/field_map.php): failed to open stream: No such file or directory in wp-content/plugins/mageewp-page-layout/includes/metabox/metabox.php on line 86
- > PHP Warning
include(MPL_PATH/includes/metabox/includes/admin-fields/field_image_select.php): failed to open stream: No such file or directory in wp-content/plugins/mageewp-page-layout/includes/metabox/metabox.php on line 83
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/mageewp-page-layout/shortcodes/mpl_section_counter.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mageewp-page-layout/gallery/featured-galleries.php:8
- > PHP Warning
include(): Failed opening 'MPL_PATH/includes/metabox/includes/admin-fields/field_repeater.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/mageewp-page-layout/includes/metabox/metabox.php on line 87
- > PHP Warning
include(): Failed opening 'MPL_PATH/includes/metabox/includes/class-mpl-metaboxes.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/mageewp-page-layout/includes/metabox/metabox.php on line 92
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Network (severe)
wp-content/plugins/mageewp-page-layout/includes/frontend/vendors/prettyPhoto/css/prettyPhoto.min.css?ver=2.1.4 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Network (severe)
wp-content/plugins/mageewp-page-layout/includes/frontend/vendors/owl-carousel/assets/owl.carousel.min.css?ver=2.1.4 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in mageewp-page-layout/assets to your readme.txt
mageewp-page-layout/mageewp-page-layout.php Passed 13 tests
The principal PHP file in "Mageewp Page Layout" v. 2.1.4 is loaded by WordPress automatically on each request
129 characters long description:
Mageewp Page Layout, accompanied with different kinds of page layout styles, makes page building and editing a much easier thing.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin86,883 lines of code in 218 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 60 | 7,276 | 4,071 | 31,625 |
CSS | 48 | 1,693 | 587 | 28,109 |
PHP | 96 | 4,368 | 2,232 | 22,732 |
SVG | 9 | 39 | 2 | 3,215 |
Sass | 4 | 92 | 0 | 1,079 |
HTML | 1 | 18 | 1 | 123 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 62.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 296.00 |
Average method complexity | 6.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 255 | |
▷ Static methods | 27 | 10.59% |
▷ Public methods | 208 | 81.57% |
▷ Protected methods | 9 | 3.53% |
▷ Private methods | 38 | 14.90% |
Functions | 206 | |
▷ Named functions | 206 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 13 | 72.22% |
▷ Class constants | 5 | 27.78% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
223 PNG files occupy 0.25MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/header/sliding_menu_animation_move.png | 0.46KB | 0.26KB | ▼ 43.37% |
assets/images/header/side_position_of_header_content_left.png | 0.28KB | 0.15KB | ▼ 46.37% |
includes/frontend/vendors/prettyPhoto/images/prettyPhoto/facebook/contentPatternLeft.png | 0.13KB | 0.10KB | ▼ 24.82% |
includes/frontend/vendors/vimeo_player/css/images/raster@2x.png | 2.66KB | 0.10KB | ▼ 96.07% |
assets/images/header/submenu_hover_background_animation.png | 1.18KB | 0.64KB | ▼ 45.78% |