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
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.15ms] Passed 4 tests
An overview of server-side resources used by LCB Portfolio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.77 ▼0.22 |
Dashboard /wp-admin | 3.35 ▲0.05 | 51.89 ▼0.83 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 47.78 ▼3.36 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 87.65 ▼18.51 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 37.35 ▼1.88 |
Portfolio /wp-admin/edit.php?post_type=portfolio | 3.32 | 40.49 |
Portfolio /wp-admin/options-general.php?page=lcb-portfolio-settings | 3.24 | 35.20 |
Add new /wp-admin/post-new.php?post_type=portfolio | 3.39 | 48.54 |
Server storage [IO: ▲1.39MB] [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: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for LCB Portfolio
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲65 | 14.47 ▼0.34 | 1.68 ▼0.49 | 42.21 ▼5.19 |
Dashboard /wp-admin | 2,234 ▲46 | 5.81 ▲0.94 | 98.71 ▼13.47 | 38.77 ▼2.19 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.05 ▲0.05 | 34.26 ▼1.63 | 32.52 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,559 ▲31 | 23.22 ▲5.13 | 664.62 ▲53.98 | 53.69 ▼6.02 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.25 ▲0.03 | 102.29 ▲1.10 | 45.45 ▼0.14 |
Portfolio /wp-admin/edit.php?post_type=portfolio | 1,096 | 1.96 | 35.10 | 31.16 |
Portfolio /wp-admin/options-general.php?page=lcb-portfolio-settings | 841 | 2.06 | 23.05 | 26.89 |
Add new /wp-admin/post-new.php?post_type=portfolio | 2,264 | 7.75 | 172.35 | 65.17 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lcb-portfolio/shortcode.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lcb-portfolio/lcb-portfolio.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/lcb-portfolio/portfolio-options.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
3 plugin tags: image with description, portfolio, external url
lcb-portfolio/lcb-portfolio.php Passed 13 tests
The entry point to "LCB Portfolio" version 1.1.2 is a PHP file that has certain tags in its header comment area
37 characters long description:
Displays image with short description
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
Success! There were no dangerous files found in this plugin212 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 21 | 11 | 134 |
PO File | 1 | 12 | 17 | 45 |
CSS | 1 | 5 | 0 | 33 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 11 | |
▷ Named functions | 11 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 1.38MB with 0.92MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.PNG | 1,298.95KB | 331.94KB | ▼ 74.45% |
screenshot-2.PNG | 79.76KB | 23.02KB | ▼ 71.14% |
screenshot-1.PNG | 35.46KB | 16.18KB | ▼ 54.37% |