Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.78ms] Passed 4 tests
An overview of server-side resources used by Advanced Portfolio Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.35 ▼8.78 |
Dashboard /wp-admin | 3.38 ▲0.07 | 48.17 ▼4.70 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 55.76 ▲3.23 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 89.12 ▼6.44 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.29 ▲0.79 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_yydev_portfolio_box |
wp_yydev_portfolio_boxes |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
yydev_portfolioes_version |
theysaidso_admin_options |
yydev_portfolio_timestamp |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Portfolio Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 13.66 ▼1.03 | 1.68 ▼0.20 | 39.70 ▼8.19 |
Dashboard /wp-admin | 2,218 ▲30 | 6.01 ▲1.18 | 98.00 ▼8.82 | 59.82 ▲17.15 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.01 ▲0.03 | 39.07 ▲1.94 | 36.22 ▲3.69 |
Add New Post /wp-admin/post-new.php | 1,527 ▼6 | 17.66 ▼5.51 | 782.82 ▲68.54 | 62.11 ▲6.96 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.20 ▼0.07 | 99.73 ▼4.39 | 74.23 ▲26.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_yydev_portfolio_box
- wp_yydev_portfolio_boxes
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- yydev_portfolioes_version
- theysaidso_admin_options
- yydev_portfolio_timestamp
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Requires at least: Version not formatted correctly
yydevelopment-portfolio-boxes/index.php 92% from 13 tests
"Advanced Portfolio Gallery" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("yydevelopment-portfolio-boxes.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin2,038 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 823 | 468 | 1,855 |
CSS | 1 | 28 | 16 | 139 |
PO File | 2 | 7 | 12 | 44 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/add-image.png | 12.71KB | 5.07KB | ▼ 60.12% |
images/search-icon.png | 0.88KB | 0.85KB | ▼ 3.55% |
images/delete-box.png | 0.64KB | 0.45KB | ▼ 29.75% |
images/favicon.png | 0.37KB | 0.38KB | 0.00% |
images/icon.png | 1.59KB | 1.63KB | 0.00% |