Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.79MB] [CPU: ▲1,465.11ms] 50% from 4 tests
An overview of server-side resources used by WP Portfolio Gallery
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 1,365.39ms on /wp-admin/post-new.php?post_type=portfolio)
- Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 1,465.11ms on /wp-admin/post-new.php?post_type=portfolio)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.83 | 1,680.63 ▲1,637.68 |
Dashboard /wp-admin | 4.23 ▲0.89 | 1,672.40 ▲1,609.81 |
Posts /wp-admin/edit.php | 4.17 ▲0.81 | 1,435.07 ▲1,384.93 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.75 | 1,433.76 ▲1,325.47 |
Media Library /wp-admin/upload.php | 4.01 ▲0.78 | 1,572.86 ▲1,540.23 |
Categories /wp-admin/edit-tags.php?taxonomy=jwtag&post_type=portfolio | 4.01 | 1,468.59 |
All Portfolio /wp-admin/edit.php?post_type=portfolio | 4.12 | 1,305.58 |
Recommended /wp-admin/edit.php?post_type=portfolio&page=wp-portfolio-gallery-recommended-plugins | 3.98 | 1,809.08 |
Add New /wp-admin/post-new.php?post_type=portfolio | 4.19 | 1,365.39 |
Server storage [IO: ▲2.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 137 new files
Database: no new tables, 13 new options
New WordPress options |
---|
jlt_wp_portfolio_notice_ask_for_rating |
theysaidso_admin_options |
db_upgraded |
jlt_wp_portfolio_notice_what_we_collect |
jlt_wp_portfolio_sheet_promo_data_hash |
widget_recent-posts |
jlt_wp_portfolio_sheet_promo_data |
jlt_wp_portfolio_notice_subscribe |
can_compress_scripts |
jlt_wp_portfolio_activation_time |
... |
Browser metrics Passed 4 tests
WP Portfolio Gallery: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,092 ▲306 | 13.46 ▼1.17 | 9.23 ▲7.28 | 38.73 ▼5.83 |
Dashboard /wp-admin | 2,366 ▲186 | 5.71 ▲0.07 | 83.98 ▼8.90 | 79.38 ▲32.34 |
Posts /wp-admin/edit.php | 2,229 ▲126 | 2.01 ▼0.00 | 36.79 ▼6.33 | 34.87 ▼3.59 |
Add New Post /wp-admin/post-new.php | 1,811 ▲274 | 22.48 ▲4.16 | 672.05 ▲18.65 | 62.41 ▼1.88 |
Media Library /wp-admin/upload.php | 1,520 ▲117 | 4.36 ▲0.12 | 95.56 ▼2.09 | 79.63 ▲37.17 |
Categories /wp-admin/edit-tags.php?taxonomy=jwtag&post_type=portfolio | 1,410 | 2.18 | 30.38 | 34.53 |
All Portfolio /wp-admin/edit.php?post_type=portfolio | 1,212 | 2.00 | 37.06 | 31.96 |
Portfolio Settings /wp-admin/WP_Fortfolio_Gallery.php | 26 | 0.42 | 0.07 | 13.10 |
Recommended /wp-admin/edit.php?post_type=portfolio&page=wp-portfolio-gallery-recommended-plugins | 1,307 | 1.71 | 28.41 | 29.39 |
Add New /wp-admin/post-new.php?post_type=portfolio | 2,429 | 7.69 | 177.79 | 131.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 13 options in the database
- theysaidso_admin_options
- jlt_wp_portfolio_notice_subscribe
- widget_theysaidso_widget
- jlt_wp_portfolio_notice_ask_for_rating
- db_upgraded
- jlt_wp_portfolio_notice_what_we_collect
- can_compress_scripts
- widget_recent-comments
- wp_portfolio_gallery_version
- jlt_wp_portfolio_sheet_promo_data
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'JLTWPFOLIO\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/wp-portfolio-gallery/Inc/Classes/Notifications/Subscribe.php:13
- > PHP Fatal error
Uncaught Error: Class 'JLTWPFOLIO\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/wp-portfolio-gallery/Inc/Classes/Notifications/Ask_For_Rating.php:12
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-portfolio-gallery/trunk/inc/easy-blocks.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'JLTWPFOLIO\\Libs\\RowLinks' not found in wp-content/plugins/wp-portfolio-gallery/Inc/Classes/Row_Links.php:12
- > PHP Fatal error
Uncaught Error: Class 'JLTWPFOLIO\\Inc\\Classes\otifications\\Model\\Popup' not found in wp-content/plugins/wp-portfolio-gallery/Inc/Classes/Notifications/Upgrade_Notice.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/wp-portfolio-gallery/trunk/inc/class-tgm-plugin-activation.php:2016
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/wp-portfolio-gallery/trunk/inc/easy-blocks.php:8
- > PHP Fatal error
Uncaught Error: Class 'JLTWPFOLIO\\Libs\\Upgrader' not found in wp-content/plugins/wp-portfolio-gallery/Inc/Classes/Upgrade_Plugin.php:12
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-portfolio-gallery/trunk/inc/easy-blocks.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-portfolio-gallery/trunk/inc/easy-blocks.php on line 7
- > 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/WP_Fortfolio_Gallery.php
- > Network (severe)
wp-admin/WP_Fortfolio_Gallery.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=portfolio&page=wp-portfolio-gallery-recommended-plugins
- > Network (severe)
https://ps.w.org/ultimate-blocks-for-gutenberg/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Add New Portfolio Item Screenshot - look and feel.), #2 (WP Portfolio Gallery Item Settings), #3 (Output of the Portfolio Gallery Plugin)
wp-portfolio-gallery/wp-portfolio-gallery.php 85% from 13 tests
The main file in "WP Portfolio Gallery" v. 1.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages/")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin8,670 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 1,390 | 3,073 | 5,312 |
JavaScript | 5 | 653 | 448 | 2,073 |
CSS | 6 | 225 | 48 | 1,285 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 17.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 34 | |
▷ Abstract classes | 4 | 11.76% |
▷ Concrete classes | 30 | 88.24% |
▷ Final classes | 1 | 3.33% |
Methods | 298 | |
▷ Static methods | 37 | 12.42% |
▷ Public methods | 272 | 91.28% |
▷ Protected methods | 24 | 8.05% |
▷ Private methods | 2 | 0.67% |
Functions | 30 | |
▷ Named functions | 26 | 86.67% |
▷ Anonymous functions | 4 | 13.33% |
Constants | 19 | |
▷ Global constants | 15 | 78.95% |
▷ Class constants | 4 | 21.05% |
▷ Public constants | 4 | 100.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
59 PNG files occupy 1.57MB with 1.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/prettyPhoto/default/sprite_x.png | 1.15KB | 0.00KB | ▼ 100.00% |
(invalid) trunk/images/prettyPhoto/facebook/contentPatternRight.png | 0.18KB | 0.00KB | ▼ 100.00% |
(invalid) trunk/screenshot-3.png | 1,256.68KB | 0.00KB | ▼ 100.00% |
(invalid) trunk/images/prettyPhoto/light_square/sprite.png | 6.08KB | 0.00KB | ▼ 100.00% |
(invalid) assets/images/prettyPhoto/facebook/contentPatternTop.png | 0.18KB | 0.00KB | ▼ 100.00% |