Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼3.72ms] Passed 4 tests
Analyzing server-side resources used by Zilla Portfolio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.07 ▼5.35 |
Dashboard /wp-admin | 3.49 ▲0.18 | 45.10 ▼4.85 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 50.02 ▼1.47 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 96.49 ▼3.19 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 39.82 ▲5.31 |
Portfolio Types /wp-admin/edit-tags.php?taxonomy=portfolio-type&post_type=portfolio | 3.40 | 36.64 |
Portfolio Posts /wp-admin/edit.php?post_type=portfolio | 3.46 | 40.30 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3.56 | 54.61 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Zilla Portfolio
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,016 ▲259 | 14.32 ▼0.06 | 10.62 ▲8.54 | 41.31 ▼3.28 |
Dashboard /wp-admin | 2,242 ▲54 | 4.84 ▼1.06 | 97.57 ▼7.35 | 39.84 ▼2.45 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.05 ▲0.00 | 39.36 ▼4.05 | 36.13 ▲1.20 |
Add New Post /wp-admin/post-new.php | 1,547 ▲24 | 23.39 ▲0.31 | 624.60 ▲36.00 | 32.30 ▼17.31 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.19 ▲0.04 | 90.42 ▼9.49 | 42.35 ▼3.94 |
Portfolio Types /wp-admin/edit-tags.php?taxonomy=portfolio-type&post_type=portfolio | 1,295 | 2.14 | 25.56 | 27.97 |
Portfolio Posts /wp-admin/edit.php?post_type=portfolio | 1,128 | 1.99 | 30.82 | 27.11 |
Add New /wp-admin/post-new.php?post_type=portfolio | 2,969 | 7.96 | 179.86 | 76.70 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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)
Good news, no errors were detected
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 fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/zillaportfolio/includes/functions.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/zillaportfolio/includes/admin/admin.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
zillaportfolio/zilla-portfolio.php 85% from 13 tests
The main file in "Zilla Portfolio" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("zillaportfolio.php" instead of "zilla-portfolio.php")
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 detected1,123 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 119 | 384 | 666 |
PO File | 1 | 74 | 78 | 174 |
JavaScript | 1 | 33 | 17 | 163 |
CSS | 1 | 24 | 0 | 120 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 3 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 40.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/portfolio-icon.png | 0.85KB | 1.11KB | 0.00% |
assets/img/portfolio-32x32.png | 0.88KB | 0.96KB | 0.00% |