Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.50ms] Passed 4 tests
A check of server-side resources used by Basic Portfolio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 38.45 ▼7.52 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.78 ▼7.42 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 49.46 ▼2.06 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 95.81 ▼5.00 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.47 ▼0.83 |
Categorías /wp-admin/edit-tags.php?taxonomy=categories-work-portfolio&post_type=work-portfolio | 3.28 | 35.24 |
Trabajos /wp-admin/edit.php?post_type=work-portfolio | 3.33 | 35.48 |
Nuevo trabajo /wp-admin/post-new.php?post_type=work-portfolio | 3.42 | 47.39 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Basic Portfolio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.36 ▲0.01 | 1.63 ▼0.33 | 40.78 ▼6.60 |
Dashboard /wp-admin | 2,226 ▲52 | 5.62 ▲0.09 | 97.45 ▲9.61 | 44.11 ▲0.86 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 2.03 ▲0.05 | 39.92 ▲0.21 | 37.97 ▲1.45 |
Add New Post /wp-admin/post-new.php | 1,457 ▼80 | 22.54 ▲4.42 | 551.05 ▼111.53 | 31.12 ▼30.55 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.17 ▲0.01 | 98.26 ▼9.46 | 46.76 ▲3.29 |
Categorías /wp-admin/edit-tags.php?taxonomy=categories-work-portfolio&post_type=work-portfolio | 1,277 | 2.13 | 26.14 | 30.63 |
Trabajos /wp-admin/edit.php?post_type=work-portfolio | 1,101 | 1.95 | 31.27 | 31.59 |
Nuevo trabajo /wp-admin/post-new.php?post_type=work-portfolio | 2,315 | 7.68 | 175.49 | 67.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/basic-portfolio/metaboxes.php
- > /wp-content/plugins/basic-portfolio/post_type.php
- > /wp-content/plugins/basic-portfolio/shortcode.php
- > /wp-content/plugins/basic-portfolio/basic-portfolio.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: share, social
basic-portfolio/basic-portfolio.php Passed 13 tests
The main PHP script in "Basic Portfolio" version 0.1 is automatically included on every request by WordPress
46 characters long description:
Very simple plugin to create a works portfolio
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin130 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 50 | 9 | 122 |
CSS | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
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
There were not PNG files found in your plugin