Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▲35.46ms] Passed 4 tests
This is a short check of server-side resources used by Gravitation iOS Showcase
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.56 | 46.76 ▲5.39 |
Dashboard /wp-admin | 3.92 ▲0.61 | 119.25 ▲65.63 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 114.86 ▲55.37 |
Add New Post /wp-admin/post-new.php | 5.75 ▼0.14 | 134.77 ▲42.02 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 74.11 ▲39.05 |
All iOS Apps /wp-admin/edit.php?post_type=gv_ios_showcase | 3.85 | 97.16 |
iOS Showcase Category /wp-admin/edit-tags.php?taxonomy=gravitation_ios_showcase_cat&post_type=gv_ios_showcase | 3.83 | 97.22 |
Server storage [IO: ▲1.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 133 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Gravitation iOS Showcase
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲134 | 13.67 ▼0.71 | 7.21 ▲5.54 | 43.07 ▲0.06 |
Dashboard /wp-admin | 2,195 ▲4 | 4.88 ▼0.05 | 116.02 ▲10.17 | 43.48 ▲3.37 |
Posts /wp-admin/edit.php | 2,047 ▼45 | 2.00 ▼0.18 | 36.50 ▼5.84 | 31.79 ▼7.63 |
Add New Post /wp-admin/post-new.php | 1,556 ▲42 | 23.26 ▲5.59 | 597.68 ▼24.45 | 33.59 ▼14.07 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.29 ▼0.11 | 95.99 ▼2.41 | 40.87 ▼3.03 |
All iOS Apps /wp-admin/edit.php?post_type=gv_ios_showcase | 1,029 | 2.05 | 33.46 | 33.73 |
iOS Showcase Category /wp-admin/edit-tags.php?taxonomy=gravitation_ios_showcase_cat&post_type=gv_ios_showcase | 1,238 | 2.17 | 26.63 | 27.88 |
Search/Add App /wp-admin/gravitation-ios-showcase.php | 26 | 0.44 | 0.09 | 13.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=gv_ios_showcase
- > Notice in wp-content/plugins/gravitation-ios-showcase/gravitation-ios-showcase.php+232
Trying to get property 'ID' of non-object
- > GET request to /wp-admin/edit.php?post_type=gv_ios_showcase
- > Notice in wp-content/plugins/gravitation-ios-showcase/gravitation-ios-showcase.php+154
Undefined variable: output
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
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gravitation-ios-showcase/gravitation-ios-showcase.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/gravitation-ios-showcase/single-gravitation-ios-showcase.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravitation-ios-showcase/custom-meta-boxes/classes.fields.php:633
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gravitation-ios-showcase/custom-meta-boxes/custom-meta-boxes.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/gravitation-ios-showcase/content-single-gravitation-ios-showcase.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gravitation-ios-showcase/custom-meta-boxes/example-functions.php:106
- > 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/gravitation-ios-showcase.php
- > Network (severe)
wp-admin/gravitation-ios-showcase.php - 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
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-5.png), #3 (screenshot-2.png), #4 (screenshot-3.png), #5 (screenshot-4.png)
gravitation-ios-showcase/gravitation-ios-showcase.php Passed 13 tests
This is the main PHP file of "Gravitation iOS Showcase" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
Gravitation iOS Showcase, is a plugin to display iOS apps on your site, with ShortCodes, You can configure options.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin10,288 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 59 | 958 | 858 | 4,259 |
CSS | 18 | 355 | 152 | 3,265 |
PHP | 9 | 1,035 | 500 | 2,390 |
JSON | 6 | 0 | 0 | 184 |
Markdown | 1 | 27 | 0 | 72 |
PO File | 2 | 16 | 20 | 63 |
Bourne Shell | 1 | 24 | 0 | 55 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 8.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 1 | 4.17% |
▷ Concrete classes | 23 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 2 | 1.82% |
▷ Public methods | 106 | 96.36% |
▷ Protected methods | 1 | 0.91% |
▷ Private methods | 3 | 2.73% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 PNG files occupy 1.26MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
custom-meta-boxes/css/vendor/jquery-ui/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
screenshot-5.png | 262.62KB | 80.78KB | ▼ 69.24% |
custom-meta-boxes/css/vendor/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
custom-meta-boxes/css/vendor/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
custom-meta-boxes/css/vendor/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |