Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼7.90ms] Passed 4 tests
Server-side resources used by DeMomentSomTres Language
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 44.16 ▲1.18 |
Dashboard /wp-admin | 3.76 ▲0.41 | 53.33 ▼12.02 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 53.60 ▲3.03 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 86.43 ▼17.04 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 38.50 ▼3.71 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.83 | 35.92 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
DeMomentSomTres Language: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.73 ▲0.20 | 1.81 ▲0.05 | 43.47 ▼1.85 |
Dashboard /wp-admin | 2,222 ▲42 | 5.54 ▼0.13 | 82.76 ▼8.61 | 44.89 ▲4.99 |
Posts /wp-admin/edit.php | 2,139 ▲42 | 2.01 ▼0.01 | 34.59 ▼2.22 | 38.11 ▲1.50 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.01 ▼0.15 | 685.34 ▼16.16 | 51.97 ▼13.97 |
Media Library /wp-admin/upload.php | 1,441 ▲44 | 4.23 ▲0.05 | 97.86 ▼2.94 | 44.30 ▼2.92 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 974 | 2.06 | 28.10 | 31.16 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/demomentsomtres-language/demomentsomtres_language.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/demomentsomtres-language/lib/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI found ("//www.demomentsomtres.com/en/wordpress-plugins/demomentsomtres-language/")
demomentsomtres-language/demomentsomtres_language.php 92% from 13 tests
The main PHP file in "DeMomentSomTres Language" ver. 4.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("demomentsomtres-language.php" instead of "demomentsomtres_language.php")
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
There were no executable files found in this plugin1,907 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 495 | 1,631 | 1,832 |
JavaScript | 1 | 15 | 6 | 75 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 42.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 5 | 4.72% |
▷ Public methods | 83 | 78.30% |
▷ Protected methods | 23 | 21.70% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin