Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼9.26ms] Passed 4 tests
This is a short check of server-side resources used by Gravitation Portfolios
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 43.72 ▲2.10 |
Dashboard /wp-admin | 3.75 ▲0.40 | 46.64 ▼30.48 |
Posts /wp-admin/edit.php | 3.80 ▲0.45 | 49.30 ▲5.18 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 86.21 ▼11.32 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 39.15 ▲2.65 |
Add New /wp-admin/post-new.php?post_type=gv_portfolios | 3.77 | 47.01 |
Portfolios Category /wp-admin/edit-tags.php?taxonomy=gravitation_portfolios_cat&post_type=gv_portfolios | 3.60 | 35.06 |
All portfolios /wp-admin/edit.php?post_type=gv_portfolios | 3.65 | 36.49 |
Server storage [IO: ▲2.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 87 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Gravitation Portfolios
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲204 | 13.59 ▼1.15 | 6.10 ▲4.32 | 39.77 ▼3.27 |
Dashboard /wp-admin | 2,241 ▲53 | 4.93 ▲0.06 | 103.07 ▼8.21 | 38.72 ▼4.10 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.12 ▲0.11 | 37.30 ▲1.72 | 32.69 ▼2.12 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 17.40 ▼0.16 | 696.07 ▲87.79 | 50.83 ▲4.32 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.26 ▲0.05 | 99.00 ▼0.24 | 44.28 ▲1.87 |
Help /wp-admin/gravitation-portfolios.php | 26 | 0.44 | 0.09 | 13.56 |
Add New /wp-admin/post-new.php?post_type=gv_portfolios | 2,420 | 7.70 | 174.64 | 137.71 |
Portfolios Category /wp-admin/edit-tags.php?taxonomy=gravitation_portfolios_cat&post_type=gv_portfolios | 1,294 | 2.13 | 26.31 | 29.69 |
All portfolios /wp-admin/edit.php?post_type=gv_portfolios | 1,121 | 2.00 | 30.02 | 30.03 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
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)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=gv_portfolios
- > Warning in wp-content/plugins/gravitation-portfolios/meta-box-class/my-meta-box-class.php+383
count(): Parameter must be an array or an object that implements Countable
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/gravitation-portfolios/meta-box-class/inc/sample.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gravitation-portfolios/gravitation-portfolios.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/gravitation-portfolios/single-gravitation-portfolio.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/gravitation-portfolios/content-archive-gravitation-portfolio.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/gravitation-portfolios/gravitation-portfolios-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/gravitation-portfolios/content-single-gravitation-portfolio.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/gravitation-portfolios/archive-gravitation-portfolio.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/gravitation-portfolios.php
- > Network (severe)
wp-admin/gravitation-portfolios.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=gv_portfolios
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/post-new.php?post_type=gv_portfolios:424:33)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=gv_portfolios
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at Object.hooks (/wp-content/plugins/gravitation-portfolios/meta-box-class/js/meta-box.js:193:73)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/gravitation-portfolios/meta-box-class/js/meta-box.js:338:20)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=gv_portfolios
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
- > GET request to /wp-admin/post-new.php?post_type=gv_portfolios
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (http://ulisesfreitas.com/gravitation-portfolios/screenshot-3.png)
gravitation-portfolios/gravitation-portfolios.php 92% from 13 tests
The main file in "Gravitation Portfolios" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 144 characters long)
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 plugin18,462 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 16 | 1,435 | 1,148 | 9,161 |
CSS | 9 | 165 | 117 | 6,537 |
PHP | 10 | 470 | 1,042 | 1,946 |
PO File | 8 | 174 | 198 | 530 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 126.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 247.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 1 | 1.32% |
▷ Public methods | 75 | 98.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.32% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
26 compressed PNG files occupy 0.76MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
meta-box-class/js/jquery-ui/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
meta-box-class/images/add.png | 0.12KB | 0.12KB | ▼ 0.81% |
meta-box-class/images/edit.png | 0.25KB | 0.25KB | 0.00% |
meta-box-class/js/jquery-ui/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/no-hay-imagen.png | 0.47KB | 0.47KB | 0.00% |