Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-recent-posts-plus.php+451
Function create_function() is deprecated
Server metrics [RAM: ▼2.53MB] [CPU: ▼343.19ms] Passed 4 tests
Server-side resources used by Functionality for Zap theme
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.84 ▼1.67 | 3.99 ▼45.85 |
Dashboard /wp-admin | 1.86 ▼1.55 | 3.88 ▼28.61 |
Posts /wp-admin/edit.php | 1.86 ▼1.78 | 4.01 ▼30.86 |
Add New Post /wp-admin/post-new.php | 1.86 ▼5.11 | 4.82 ▼1,267.42 |
Media Library /wp-admin/upload.php | 1.86 ▼1.43 | 3.38 ▼19.59 |
Location Categories /wp-admin/edit-tags.php?taxonomy=location_category&post_type=locations | 1.86 | 3.76 |
Project Categories /wp-admin/edit-tags.php?taxonomy=project_category&post_type=projects | 1.86 | 4.79 |
Projects /wp-admin/edit.php?post_type=projects | 1.86 | 3.57 |
Services /wp-admin/edit.php?post_type=service | 1.86 | 4.46 |
Add New /wp-admin/post-new.php?post_type=locations | 1.86 | 3.67 |
Service Categories /wp-admin/edit-tags.php?taxonomy=service_category&post_type=service | 1.86 | 4.01 |
Add New /wp-admin/post-new.php?post_type=service | 1.86 | 3.90 |
Locations /wp-admin/edit.php?post_type=locations | 1.86 | 4.09 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 1.86 | 3.78 |
Add New /wp-admin/post-new.php?post_type=projects | 1.86 | 3.06 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_zap_author |
widget_recent-comments |
widget_recent-posts-plus |
widget_fastflickrwidget |
widget_zap-directory-followers |
Browser metrics Passed 4 tests
An overview of browser requirements for Functionality for Zap theme
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,077 ▲333 | 17.01 ▲0.97 | 12.72 ▲6.50 | 2.41 ▲0.24 |
Dashboard /wp-admin | 3,027 ▲166 | 6.01 ▼0.15 | 116.27 ▼12.59 | 155.69 ▼4.79 |
Posts /wp-admin/edit.php | 2,825 ▲131 | 3.26 ▲0.02 | 63.12 ▼0.01 | 138.55 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,802 ▲141 | 17.39 ▲1.68 | 393.22 ▼27.86 | 168.58 ▲11.80 |
Media Library /wp-admin/upload.php | 1,841 ▲143 | 5.56 ▲0.01 | 140.97 ▲3.20 | 184.41 ▲1.26 |
Location Categories /wp-admin/edit-tags.php?taxonomy=location_category&post_type=locations | 1,756 | 2.78 | 58.59 | 108.60 |
Project Categories /wp-admin/edit-tags.php?taxonomy=project_category&post_type=projects | 1,765 | 2.81 | 54.54 | 108.49 |
Projects /wp-admin/edit.php?post_type=projects | 1,514 | 3.18 | 58.86 | 110.18 |
Services /wp-admin/edit.php?post_type=service | 1,517 | 3.17 | 59.68 | 112.27 |
Add New /wp-admin/post-new.php?post_type=locations | 3,362 | 10.20 | 188.44 | 199.70 |
Service Categories /wp-admin/edit-tags.php?taxonomy=service_category&post_type=service | 1,765 | 2.79 | 55.39 | 109.22 |
Add New /wp-admin/post-new.php?post_type=service | 3,127 | 9.89 | 187.81 | 190.45 |
Locations /wp-admin/edit.php?post_type=locations | 1,517 | 2.96 | 59.92 | 111.84 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 9,155 | 20.64 | 478.73 | 150.37 |
Add New /wp-admin/post-new.php?post_type=projects | 3,147 | 9.97 | 178.99 | 191.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-recent-posts-plus.php+451
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_zap-directory-followers
- widget_recent-posts
- widget_fastflickrwidget
- widget_zap_author
- widget_recent-posts-plus
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 30 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=projects
- > Deprecated in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+291
Function create_function() is deprecated
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+115
Undefined index: title
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+116
Undefined index: username
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+117
Undefined index: view
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+118
Undefined index: before_item
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+119
Undefined index: after_item
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+120
Undefined index: before_widget
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+121
Undefined index: after_widget
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+122
Undefined index: items
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+123
Undefined index: more_title
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+124
Undefined index: tags
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+125
Undefined index: target
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+126
Undefined index: show_titles
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+127
Undefined index: thickbox
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+128
Undefined index: random
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+129
Undefined index: random_tag
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php+130
Undefined index: javascript
- 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 | 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
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/functionality-for-zap-theme/public/partials/zap-functionality-public-display.php
- > /wp-content/plugins/functionality-for-zap-theme/admin/partials/zap-functionality-admin-display.php
- > /wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-recent-posts-plus.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/functionality-for-zap-theme/includes/metaboxes/templates/layouts.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-fast-flickr.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/functionality-for-zap-theme/includes/metaboxes/layouts.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-about-author.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-zap-theme/includes/widgets/widget-followers.php:3
- > 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 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
1 plugin tags: zap
functionality-for-zap-theme/functionality-for-zap-theme.php Passed 13 tests
The main PHP file in "Functionality for Zap theme" ver. 1.2.4 adds more information about the plugin and also serves as the entry point for this plugin
49 characters long description:
This plugin contains Zap theme core functionality
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 plugin4,293 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 707 | 1,055 | 3,046 |
CSS | 2 | 165 | 13 | 898 |
JavaScript | 4 | 33 | 82 | 178 |
PO File | 1 | 76 | 163 | 171 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 12.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 2 | 8.33% |
▷ Concrete classes | 22 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 128 | |
▷ Static methods | 13 | 10.16% |
▷ Public methods | 110 | 85.94% |
▷ Protected methods | 2 | 1.56% |
▷ Private methods | 16 | 12.50% |
Functions | 39 | |
▷ Named functions | 39 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
7 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/before-after-sep.png | 17.93KB | 0.27KB | ▼ 98.51% |
public/images/marker.png | 5.71KB | 2.92KB | ▼ 48.89% |
public/images/layout-right.png | 0.54KB | 0.76KB | 0.00% |
public/images/select-triangle.png | 17.73KB | 0.21KB | ▼ 98.80% |
public/images/layout-left.png | 0.48KB | 0.62KB | 0.00% |