Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.44MB] [CPU: ▼3.89ms] Passed 4 tests
Analyzing server-side resources used by WCD Portfolio
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 43.21 ▲3.55 |
Dashboard /wp-admin | 3.79 ▲0.44 | 46.05 ▼15.48 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 49.18 ▲4.58 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 84.55 ▼7.66 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 38.57 ▲4.05 |
All Portfolio Items /wp-admin/edit.php?post_type=portfolio | 3.76 | 43.23 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=portfolio | 3.64 | 38.03 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3.80 | 50.05 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 3.71 | 34.94 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
category_children |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WCD Portfolio
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲93 | 13.21 ▼1.38 | 4.50 ▲2.34 | 38.83 ▼5.26 |
Dashboard /wp-admin | 2,262 ▲74 | 5.84 ▲0.93 | 99.04 ▼16.65 | 44.02 ▲2.04 |
Posts /wp-admin/edit.php | 2,156 ▲70 | 2.09 ▲0.10 | 42.77 ▲7.62 | 40.55 ▲6.59 |
Add New Post /wp-admin/post-new.php | 1,563 ▲30 | 17.60 ▼5.50 | 679.80 ▼32.91 | 59.04 ▼2.85 |
Media Library /wp-admin/upload.php | 1,449 ▲61 | 4.25 ▲0.07 | 97.82 ▼14.38 | 44.76 ▼2.10 |
All Portfolio Items /wp-admin/edit.php?post_type=portfolio | 1,167 | 1.99 | 35.58 | 34.72 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=portfolio | 1,510 | 2.33 | 35.49 | 41.19 |
Add New /wp-admin/post-new.php?post_type=portfolio | 1,772 | 3.56 | 67.06 | 36.50 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 990 | 2.06 | 25.19 | 29.18 |
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 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- category_children
- widget_recent-comments
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
Good news, no errors were detected
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wcd-portfolio/assets/wcd-portfolio-grid/includes/frontend.js.php
- 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: settings in wp-content/plugins/wcd-portfolio/assets/wcd-portfolio-grid/includes/frontend.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wcd-portfolio/wcd-portfolio-metaboxes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wcd-portfolio/single-portfolio.php:1
- > PHP Notice
Undefined variable: settings in wp-content/plugins/wcd-portfolio/assets/wcd-portfolio-grid/includes/frontend.php on line 9
- > PHP Notice
Trying to get property 'image_size' of non-object in wp-content/plugins/wcd-portfolio/assets/wcd-portfolio-grid/includes/frontend.php on line 7
- > PHP Notice
Trying to get property 'show_date' of non-object in wp-content/plugins/wcd-portfolio/assets/wcd-portfolio-grid/includes/frontend.php on line 10
- > PHP Notice
Undefined variable: settings in wp-content/plugins/wcd-portfolio/assets/wcd-portfolio-grid/includes/frontend.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wcd-portfolio/wcd-portfolio.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wcd-portfolio/wcd-portfolio-cpt.php:56
- > PHP Notice
Trying to get property 'portfolio_link' of non-object in wp-content/plugins/wcd-portfolio/assets/wcd-portfolio-grid/includes/frontend.php on line 6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #2, #3, #4, #5 in wcd-portfolio/assets to your readme.txt
wcd-portfolio/wcd-portfolio.php Passed 13 tests
The entry point to "WCD Portfolio" version 1.0 is a PHP file that has certain tags in its header comment area
38 characters long description:
Add a lightbox portfolio to your site.
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
Good job! No executable or dangerous file extensions detected2,663 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 547 | 1,632 | 2,086 |
JavaScript | 1 | 54 | 101 | 404 |
CSS | 2 | 35 | 30 | 173 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 42.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 5 | 4.90% |
▷ Public methods | 79 | 77.45% |
▷ Protected methods | 23 | 22.55% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 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
No PNG images were found in this plugin