Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/demomentsomtres-portfolio/widgets.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; DeMomentSomTresPortfolioWorksWidget has a deprecated constructor
Server metrics [RAM: ▼1.72MB] [CPU: ▼54.15ms] Passed 4 tests
An overview of server-side resources used by DeMomentSomTres Portfolio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.26 ▼1.20 | 6.05 ▼35.53 |
Dashboard /wp-admin | 2.28 ▼1.02 | 8.48 ▼44.90 |
Posts /wp-admin/edit.php | 2.28 ▼1.07 | 7.53 ▼38.12 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.60 | 7.28 ▼98.06 |
Media Library /wp-admin/upload.php | 2.28 ▼0.95 | 6.62 ▼26.59 |
Service Groups /wp-admin/edit-tags.php?taxonomy=portfolio-group&post_type=portfolio-service | 2.28 | 7.43 |
Works /wp-admin/edit.php?post_type=portfolio-work | 2.28 | 7.67 |
DeMomentSomTres Portfolio /wp-admin/options-general.php?page=dmst_portfolio | 2.28 | 7.09 |
Add Work /wp-admin/post-new.php?post_type=portfolio-work | 2.28 | 8.53 |
Add Service /wp-admin/post-new.php?post_type=portfolio-service | 2.28 | 7.19 |
Services /wp-admin/edit.php?post_type=portfolio-service | 2.28 | 8.19 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_demomentsomtresportfolioworkswidget |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
DeMomentSomTres Portfolio: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲133 | 13.68 ▼0.69 | 1.72 ▲0.09 | 43.83 ▲0.08 |
Dashboard /wp-admin | 2,271 ▲80 | 4.85 ▼1.03 | 98.84 ▼9.72 | 41.49 ▼2.06 |
Posts /wp-admin/edit.php | 2,154 ▲62 | 1.99 ▼0.01 | 36.73 ▼3.64 | 34.23 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,565 ▲32 | 17.44 ▼5.75 | 653.33 ▲34.43 | 51.97 ▼2.57 |
Media Library /wp-admin/upload.php | 1,450 ▲68 | 4.26 ▲0.05 | 94.31 ▼3.02 | 44.03 ▼0.58 |
Service Groups /wp-admin/edit-tags.php?taxonomy=portfolio-group&post_type=portfolio-service | 1,293 | 2.26 | 26.95 | 28.50 |
Works /wp-admin/edit.php?post_type=portfolio-work | 1,166 | 1.96 | 30.43 | 29.10 |
DeMomentSomTres Portfolio /wp-admin/options-general.php?page=dmst_portfolio | 1,115 | 1.69 | 23.87 | 30.60 |
Add Work /wp-admin/post-new.php?post_type=portfolio-work | 2,776 | 7.73 | 179.77 | 78.63 |
Add Service /wp-admin/post-new.php?post_type=portfolio-service | 2,866 | 7.84 | 180.70 | 64.62 |
Services /wp-admin/edit.php?post_type=portfolio-service | 1,174 | 1.93 | 31.65 | 34.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/demomentsomtres-portfolio/widgets.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; DeMomentSomTresPortfolioWorksWidget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_demomentsomtresportfolioworkswidget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=portfolio-service
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/demomentsomtres-portfolio/widgets.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; DeMomentSomTresPortfolioWorksWidget has a deprecated constructor
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=portfolio-service
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/demomentsomtres-portfolio/demomentsomtres-portfolio.php+62
Function create_function() is deprecated
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=portfolio-service
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in DeMomentSomTresPortfolioWorksWidget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=dmst_portfolio
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=dmst_portfolio
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=portfolio-service
- > Notice in wp-content/plugins/demomentsomtres-portfolio/functions.php+431
Undefined index: post_type
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/demomentsomtres-portfolio/widgets.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/demomentsomtres-portfolio/admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/demomentsomtres-portfolio/demomentsomtres-portfolio.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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
1 plugin tags: service portfolio
demomentsomtres-portfolio/demomentsomtres-portfolio.php Passed 13 tests
The principal PHP file in "DeMomentSomTres Portfolio" v. 1.0.5 is loaded by WordPress automatically on each request
73 characters long description:
DeMomentSomTres Portfolio lets you show your portfolio linked to services
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
Success! There were no dangerous files found in this plugin1,046 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 91 | 359 | 801 |
PO File | 1 | 82 | 0 | 187 |
JavaScript | 4 | 1 | 16 | 58 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 65 | |
▷ Named functions | 65 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
mce_plugins/icon-services.png | 2.16KB | 0.72KB | ▼ 66.49% |
mce_plugins/icon-works.png | 2.35KB | 1.16KB | ▼ 50.71% |