Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼11.57ms] Passed 4 tests
An overview of server-side resources used by Codeincept Portfolio
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.32 | 46.37 ▼2.72 |
Dashboard /wp-admin | 3.86 ▲0.23 | 53.35 ▼14.60 |
Posts /wp-admin/edit.php | 3.91 ▲0.23 | 52.68 ▼6.49 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.26 | 96.57 ▼22.47 |
Media Library /wp-admin/upload.php | 3.72 ▲0.23 | 42.39 ▲4.17 |
Category /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=advanced-portfolio | 3.72 | 38.70 |
Add Portfolio /wp-admin/edit.php?post_type=advanced-portfolio | 3.83 | 53.87 |
Portfolio Shortcodes /wp-admin/edit.php?post_type=advportfolios | 3.83 | 41.69 |
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tags&post_type=advanced-portfolio | 3.71 | 39.44 |
Settings /wp-admin/edit.php?post_type=advanced-portfolio&page=portfolio-settings | 3.71 | 37.36 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 93 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Codeincept Portfolio
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲205 | 13.92 ▼0.75 | 10.58 ▲8.89 | 42.26 ▼0.01 |
Dashboard /wp-admin | 2,232 ▲55 | 5.62 ▲0.01 | 91.07 ▼0.94 | 40.80 ▼2.42 |
Posts /wp-admin/edit.php | 2,143 ▲40 | 2.03 ▼0.00 | 38.85 ▼4.44 | 31.76 ▼6.52 |
Add New Post /wp-admin/post-new.php | 1,559 ▲27 | 23.11 ▼0.13 | 676.92 ▲42.30 | 57.55 ▲10.61 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.38 ▲0.05 | 99.86 ▼7.28 | 44.70 ▼1.16 |
Category /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=advanced-portfolio | 1,314 | 2.16 | 29.02 | 28.47 |
Add Portfolio /wp-admin/edit.php?post_type=advanced-portfolio | 1,135 | 1.94 | 31.40 | 33.16 |
Portfolio Shortcodes /wp-admin/edit.php?post_type=advportfolios | 1,120 | 1.97 | 30.96 | 31.63 |
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tags&post_type=advanced-portfolio | 1,286 | 2.31 | 27.10 | 31.49 |
Settings /wp-admin/edit.php?post_type=advanced-portfolio&page=portfolio-settings | 866 | 2.04 | 23.93 | 26.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/codeincept-portfolio/admin/portfolio/filterable.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codeincept-portfolio/admin/class-advanced-portfolio-metaboxes.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/codeincept-portfolio/public/portfolio/simple.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/codeincept-portfolio/public/portfolio/one_row_slider.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/codeincept-portfolio/public/portfolio/filterable.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function the_post_thumbnail() in wp-content/plugins/codeincept-portfolio/public/portfolio/single_item.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: advanced portfolio, codeincept, portfolio, portfolio plugin, codeincept portfolio...
codeincept-portfolio/codeincept-portfolio.php 92% from 13 tests
The main file in "Codeincept Portfolio" v. 1.0.2 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:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,610 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 134 | 92 | 1,438 |
PHP | 17 | 238 | 566 | 1,274 |
HTML | 1 | 11 | 0 | 343 |
JavaScript | 7 | 7 | 76 | 297 |
JSON | 1 | 0 | 0 | 202 |
SVG | 2 | 32 | 0 | 56 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 2 | 3.77% |
▷ Public methods | 48 | 90.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.43% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
31 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/js/skins/default/lightbox-navnext.png | 0.45KB | 0.35KB | ▼ 21.40% |
public/js/skins/default/lightbox-next-fullscreen.png | 0.32KB | 0.20KB | ▼ 36.59% |
public/js/skins/default/html5boxplayer_fullscreen.png | 1.84KB | 1.57KB | ▼ 14.98% |
public/js/skins/default/html5boxplayer_hd.png | 1.46KB | 1.59KB | 0.00% |
public/js/skins/default/lightbox-prev.png | 0.34KB | 0.15KB | ▼ 55.40% |