Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.78MB] [CPU: ▲0.92ms] Passed 4 tests
An overview of server-side resources used by Themify Portfolio Post
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.77 | 40.96 ▼1.52 |
Dashboard /wp-admin | 4.12 ▲0.81 | 50.71 ▲3.11 |
Posts /wp-admin/edit.php | 4.17 ▲0.82 | 52.51 ▲5.60 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 87.31 ▼2.52 |
Media Library /wp-admin/upload.php | 3.98 ▲0.75 | 39.32 ▲4.62 |
Portfolios /wp-admin/edit.php?post_type=portfolio | 4.12 | 39.70 |
Add New /wp-admin/post-new.php?post_type=portfolio | 4.19 | 55.79 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio | 4.06 | 45.18 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 79 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
__portfolio_slug |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Themify Portfolio Post
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲62 | 14.26 ▼0.45 | 1.63 ▼0.14 | 39.08 ▼4.16 |
Dashboard /wp-admin | 2,229 ▲51 | 5.60 ▼0.04 | 92.14 ▼24.57 | 39.90 ▼7.26 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.99 ▲0.05 | 39.72 ▲1.40 | 35.67 ▼2.44 |
Add New Post /wp-admin/post-new.php | 6,266 ▲4,740 | 25.90 ▲2.80 | 917.50 ▲190.66 | 37.33 ▼12.41 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.23 ▲0.03 | 95.20 ▼10.28 | 40.36 ▼6.66 |
Portfolios /wp-admin/edit.php?post_type=portfolio | 1,118 | 1.96 | 37.52 | 31.96 |
Add New /wp-admin/post-new.php?post_type=portfolio | 2,638 | 8.12 | 189.16 | 77.19 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio | 1,496 | 3.39 | 46.01 | 28.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- __portfolio_slug
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/themify-portfolio-post/templates/default.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/themify-portfolio-post/includes/config.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/themify-portfolio-post/templates/shortcode.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: post-type, portfolio, showcase, post
themify-portfolio-post/themify-portfolio-post.php 92% from 13 tests
The main PHP file in "Themify Portfolio Post" ver. 1.2.6 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected7,083 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 519 | 729 | 3,313 |
JavaScript | 17 | 310 | 251 | 2,205 |
CSS | 11 | 21 | 41 | 1,565 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 172.00 |
Average method complexity | 4.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 4 | 5.41% |
▷ Public methods | 71 | 95.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.05% |
Functions | 66 | |
▷ Named functions | 65 | 98.48% |
▷ Anonymous functions | 1 | 1.52% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/themify-metabox/img/ddbtn-cross.png | 0.18KB | 0.27KB | 0.00% |
includes/themify-metabox/img/ddbtn-blank.png | 0.07KB | 0.09KB | 0.00% |
includes/themify-metabox/img/ddbtn-check.png | 0.14KB | 0.23KB | 0.00% |
includes/themify-metabox/img/icon-delete.png | 0.45KB | 0.46KB | 0.00% |
includes/themify-metabox/img/jquery.minicolors.png | 24.58KB | 27.69KB | 0.00% |