Benchmarks
Plugin footprint 65% 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.34MB] [CPU: ▼5.45ms] Passed 4 tests
This is a short check of server-side resources used by Portfolio Gallery, Product Catalog - Grid KIT Portfolio
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 36.37 ▲0.48 |
Dashboard /wp-admin | 3.67 ▲0.33 | 47.11 ▼14.98 |
Posts /wp-admin/edit.php | 3.71 ▲0.36 | 49.54 ▲6.25 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 83.04 ▼13.53 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 40.65 ▲6.30 |
Teams /wp-admin/admin.php?page=grid-kit-teams | 3.69 | 299.38 |
Portfolios /wp-admin/admin.php?page=grid-kit | 3.62 | 38.66 |
Product catalogs /wp-admin/admin.php?page=grid-kit-catalogs | 3.62 | 40.33 |
Galleries /wp-admin/admin.php?page=grid-kit-galleries | 3.62 | 39.64 |
Client logos /wp-admin/admin.php?page=grid-kit-client-logos | 3.62 | 38.64 |
Albums /wp-admin/admin.php?page=grid-kit-albums | 3.62 | 35.78 |
Sliders /wp-admin/admin.php?page=grid-kit-sliders | 3.62 | 38.31 |
Server storage [IO: ▲1.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 96 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_crp_portfolios |
wp_crp_projects |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
gkit_banners_last_loaded_at |
widget_recent-posts |
gkit_banners_content |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Portfolio Gallery, Product Catalog - Grid KIT Portfolio: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,134 ▲388 | 14.02 ▼0.54 | 16.51 ▲14.78 | 45.64 ▼1.76 |
Dashboard /wp-admin | 2,252 ▲61 | 4.91 ▼1.17 | 108.44 ▲3.70 | 39.82 ▼2.16 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.02 ▼0.03 | 40.77 ▲2.02 | 34.59 ▲0.00 |
Add New Post /wp-admin/post-new.php | 6,222 ▲4,702 | 26.18 ▲2.94 | 949.08 ▲283.85 | 64.15 ▲11.38 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.26 ▲0.06 | 94.53 ▼16.61 | 45.35 ▼2.75 |
Teams /wp-admin/admin.php?page=grid-kit-teams | 1,270 | 3.64 | 60.14 | 46.73 |
Portfolios /wp-admin/admin.php?page=grid-kit | 1,270 | 3.42 | 47.38 | 31.39 |
Product catalogs /wp-admin/admin.php?page=grid-kit-catalogs | 1,273 | 3.48 | 42.21 | 30.03 |
Galleries /wp-admin/admin.php?page=grid-kit-galleries | 1,276 | 3.46 | 41.95 | 30.97 |
Client logos /wp-admin/admin.php?page=grid-kit-client-logos | 1,276 | 3.47 | 41.59 | 31.16 |
Albums /wp-admin/admin.php?page=grid-kit-albums | 1,276 | 3.68 | 41.28 | 28.23 |
Sliders /wp-admin/admin.php?page=grid-kit-sliders | 1,273 | 3.47 | 42.79 | 31.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_crp_projects
- wp_crp_portfolios
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/portfolio-wp/views/admin/crp-admin-modal-spinner.php
- > /wp-content/plugins/portfolio-wp/views/front/crp-front.php
- > /wp-content/plugins/portfolio-wp/views/admin/crp-admin-header.php
- 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant CRP_ADMIN_VIEWS_DIR_PATH - assumed 'CRP_ADMIN_VIEWS_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/portfolio-wp/views/admin/crp-admin.php on line 5
- > PHP Warning
Use of undefined constant CRP_CLASSES_DIR_PATH - assumed 'CRP_CLASSES_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/portfolio-wp/views/admin/crp-admin-dashboard.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/portfolio-wp/classes/CRPDashboardListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/portfolio-wp/gkit-config.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/portfolio-wp/views/admin/crp-admin-gallery.php:19
- > PHP Fatal error
Uncaught Error: Class 'CRPHelper' not found in wp-content/plugins/portfolio-wp/views/admin/crp-header-banner.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/portfolio-wp/views/admin/crp-admin-slider.php:19
- > PHP Fatal error
Uncaught Error: Class 'CRPGridType' not found in wp-content/plugins/portfolio-wp/views/front/layouts/crp-front-tiled-layout-lightgallery.php:26
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/portfolio-wp/classes/CRPDashboardListTable.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'CRP_CLASSES_DIR_PATH/CRPDashboardListTable.php' (include_path='.:/usr/share/php') in wp-content/plugins/portfolio-wp/views/admin/crp-admin-dashboard.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: portfolio gallery, portfolio, portfolio plugin, photo gallery, gallery
portfolio-wp/portfolio-wp.php 92% from 13 tests
The entry point to "Portfolio Gallery, Product Catalog - Grid KIT Portfolio" version 2.2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)
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
There were no executable files found in this plugin14,745 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 16 | 719 | 1,035 | 5,256 |
CSS | 17 | 438 | 144 | 4,786 |
PHP | 23 | 992 | 497 | 4,072 |
SVG | 3 | 0 | 0 | 631 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 14 | 82.35% |
▷ Concrete classes | 3 | 17.65% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 16 | 47.06% |
▷ Public methods | 31 | 91.18% |
▷ Protected methods | 1 | 2.94% |
▷ Private methods | 2 | 5.88% |
Functions | 39 | |
▷ Named functions | 39 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 335 | |
▷ Global constants | 42 | 12.54% |
▷ Class constants | 293 | 87.46% |
▷ Public constants | 293 | 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
25 PNG files occupy 0.32MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/admin/layouts/layout-square_dark.png | 16.31KB | 0.23KB | ▼ 98.59% |
images/admin/layouts/layout-slider.png | 63.73KB | 1.78KB | ▼ 97.20% |
images/admin/layouts/layout-masonry.png | 0.27KB | 0.28KB | 0.00% |
images/general/glazzed-image-placeholder.png | 27.91KB | 4.92KB | ▼ 82.38% |
images/admin/icon_small.png | 6.81KB | 4.23KB | ▼ 37.85% |