Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼5.02ms] Passed 4 tests
A check of server-side resources used by Developer project portfolio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.07 ▼1.98 |
Dashboard /wp-admin | 3.42 ▲0.11 | 45.92 ▼5.89 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 48.20 ▼1.75 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 90.75 ▼10.45 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.93 ▲2.12 |
All projects /wp-admin/edit.php?post_type=dpp_project | 3.38 | 35.90 |
Tools & Technologies /wp-admin/edit-tags.php?taxonomy=dpp_tools&post_type=dpp_project | 3.33 | 35.26 |
Add new /wp-admin/post-new.php?post_type=dpp_project | 3.46 | 51.45 |
Platforms /wp-admin/edit-tags.php?taxonomy=dpp_platforms&post_type=dpp_project | 3.33 | 32.55 |
Programming Languages /wp-admin/edit-tags.php?taxonomy=dpp_languages&post_type=dpp_project | 3.33 | 33.78 |
Customer/Category /wp-admin/edit-tags.php?taxonomy=dpp_customers&post_type=dpp_project | 3.33 | 34.72 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Developer project portfolio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲108 | 13.62 ▼1.05 | 4.79 ▲2.89 | 36.67 ▼6.08 |
Dashboard /wp-admin | 2,251 ▲60 | 4.84 ▼0.01 | 103.99 ▼12.13 | 38.06 ▼4.78 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.03 ▲0.04 | 34.85 ▼1.31 | 33.03 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,565 ▲32 | 23.23 ▲0.14 | 617.81 ▼57.05 | 49.82 ▼12.23 |
Media Library /wp-admin/upload.php | 1,436 ▲51 | 4.25 ▲0.01 | 97.16 ▼6.43 | 42.31 ▼0.00 |
All projects /wp-admin/edit.php?post_type=dpp_project | 1,098 | 2.02 | 32.90 | 28.74 |
Tools & Technologies /wp-admin/edit-tags.php?taxonomy=dpp_tools&post_type=dpp_project | 1,276 | 2.13 | 25.28 | 31.20 |
Add new /wp-admin/post-new.php?post_type=dpp_project | 2,645 | 8.02 | 181.66 | 77.47 |
Platforms /wp-admin/edit-tags.php?taxonomy=dpp_platforms&post_type=dpp_project | 1,276 | 2.14 | 25.53 | 26.30 |
Programming Languages /wp-admin/edit-tags.php?taxonomy=dpp_languages&post_type=dpp_project | 1,276 | 2.14 | 27.22 | 28.34 |
Customer/Category /wp-admin/edit-tags.php?taxonomy=dpp_customers&post_type=dpp_project | 1,310 | 2.13 | 26.36 | 35.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/developer-project-portfolio/templates/projects-listing.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-project-portfolio/custom-post-types/project-links-metabox.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-project-portfolio/custom-post-types/project-custom-post-type.php:33
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/developer-project-portfolio/templates/projects-listing.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/developer-project-portfolio/templates/single-dpp_project.php:2
- > PHP Notice
Undefined variable: projects in wp-content/plugins/developer-project-portfolio/templates/projects-listing.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-project-portfolio/custom-post-types/project-custom-post-type.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Donate link: Invalid URI ("")
developer-project-portfolio/developer-project-portfolio.php Passed 13 tests
The principal PHP file in "Developer project portfolio" v. 0.2 is loaded by WordPress automatically on each request
117 characters long description:
Displays a project portfolio for visitors. Set customer, image, description, languages and platform for each project.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected491 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 41 | 26 | 307 |
CSS | 2 | 16 | 0 | 80 |
PO File | 1 | 23 | 23 | 62 |
JavaScript | 1 | 2 | 0 | 31 |
Markdown | 1 | 11 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 12 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 25.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
editor/images/folder.png | 1.60KB | 0.45KB | ▼ 72.14% |