Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼671.52ms] Passed 4 tests
A check of server-side resources used by DeMomentSomTres ok ko
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.13 ▲0.41 | 35.26 ▲2.92 |
Dashboard /wp-admin | 3.42 ▲0.37 | 45.80 ▲2.40 |
Posts /wp-admin/edit.php | 3.47 ▲0.37 | 45.48 ▼0.73 |
Add New Post /wp-admin/post-new.php | 5.72 ▲0.29 | 90.01 ▼2,685.99 |
Media Library /wp-admin/upload.php | 3.30 ▲0.30 | 36.82 ▼1.76 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.33 | 31.25 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for DeMomentSomTres ok ko
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,742 ▲146 | 15.88 ▼0.11 | 8.98 ▲0.15 | 47.26 ▼1.63 |
Dashboard /wp-admin | 3,009 ▲76 | 5.99 ▲0.05 | 151.94 ▼0.55 | 118.86 ▲13.05 |
Posts /wp-admin/edit.php | 2,791 ▲52 | 2.87 ▲0.17 | 76.35 ▲3.20 | 94.47 ▲3.68 |
Add New Post /wp-admin/post-new.php | 1,527 ▲27 | 18.54 ▼0.20 | 403.20 ▲6.19 | 112.81 ▲1.93 |
Media Library /wp-admin/upload.php | 1,857 ▲50 | 5.06 ▲0.01 | 157.29 ▲0.91 | 125.18 ▲7.71 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,253 | 2.09 | 53.57 | 69.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/demomentsomtres-okko/lib/class-tgm-plugin-activation.php:161
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/demomentsomtres-okko/lib/class-tgm-plugin-activation.php:161
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: all posts, archives, category
demomentsomtres-okko/demomentsomtres-okko.php Passed 13 tests
"DeMomentSomTres ok ko" version 2.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
Displays service status information.
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
No dangerous file extensions were detected1,664 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 386 | 820 | 1,493 |
Markdown | 1 | 50 | 0 | 143 |
JavaScript | 1 | 1 | 0 | 28 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 1 | 1.72% |
▷ Public methods | 52 | 89.66% |
▷ Protected methods | 6 | 10.34% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 1 | 4.55% |
▷ Class constants | 21 | 95.45% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin