Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.33ms] Passed 4 tests
Server-side resources used by Ruven Themes: Portfolio
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.41 ▼2.00 |
Dashboard /wp-admin | 3.36 ▲0.01 | 44.12 ▼19.32 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 44.81 ▼2.81 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.37 ▼5.20 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.69 ▼1.31 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3.44 | 52.06 |
Types /wp-admin/edit-tags.php?taxonomy=portfolio-type&post_type=portfolio | 3.28 | 33.29 |
Portfolio /wp-admin/edit.php?post_type=portfolio | 3.33 | 33.88 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- Illegal file modification detected: 2 files (0.00KB) outside of "wp-content/plugins/ruven-themes-portfolio/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/ruven-themes-portfolio/assets/icon-256\303\227256.png"
- (new file) "wp-content/plugins/ruven-themes-portfolio/assets/icon-128\303\227128.png"
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Ruven Themes: Portfolio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 14.47 ▲0.10 | 1.93 ▲0.01 | 41.18 ▼14.01 |
Dashboard /wp-admin | 2,234 ▲49 | 5.88 ▲0.07 | 108.40 ▲0.68 | 40.58 ▼0.93 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 1.97 ▼0.07 | 40.88 ▲2.74 | 36.15 ▲1.43 |
Add New Post /wp-admin/post-new.php | 1,560 ▲18 | 23.23 ▲4.51 | 593.88 ▼70.06 | 47.16 ▼2.95 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.20 ▼0.03 | 96.39 ▼4.71 | 41.41 ▼0.65 |
Add New /wp-admin/post-new.php?post_type=portfolio | 2,826 | 7.72 | 190.75 | 76.25 |
Types /wp-admin/edit-tags.php?taxonomy=portfolio-type&post_type=portfolio | 1,296 | 2.14 | 27.08 | 28.59 |
Portfolio /wp-admin/edit.php?post_type=portfolio | 1,143 | 1.93 | 34.07 | 29.20 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ruven-themes-portfolio/ruven-themes-portfolio.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 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
2 plugin tags: custom post type, portfolio
ruven-themes-portfolio/ruven-themes-portfolio.php Passed 13 tests
The principal PHP file in "Ruven Themes: Portfolio" v. 1.0 is loaded by WordPress automatically on each request
73 characters long description:
Extends the functionality of Ruven Themes by adding a Portfolio post type
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 detected93 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 48 | 26 | 93 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256×256.png | 4.33KB | 1.56KB | ▼ 63.93% |
assets/icon-128×128.png | 4.83KB | 2.33KB | ▼ 51.91% |