94% demomentsomtres-okko

Code Review | DeMomentSomTres ok ko

WordPress plugin DeMomentSomTres ok ko scored 94% from 54 tests.

About plugin

  • Plugin page: demomentsomtres-okko
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 5.8.1
  • First release: Dec 14, 2015
  • Latest release: Feb 15, 2016
  • Number of updates: 5
  • Update frequency: every 12.6 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,381 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.13 ▲0.4135.26 ▲2.92
Dashboard /wp-admin3.42 ▲0.3745.80 ▲2.40
Posts /wp-admin/edit.php3.47 ▲0.3745.48 ▼0.73
Add New Post /wp-admin/post-new.php5.72 ▲0.2990.01 ▼2,685.99
Media Library /wp-admin/upload.php3.30 ▲0.3036.82 ▼1.76
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.3331.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,742 ▲14615.88 ▼0.118.98 ▲0.1547.26 ▼1.63
Dashboard /wp-admin3,009 ▲765.99 ▲0.05151.94 ▼0.55118.86 ▲13.05
Posts /wp-admin/edit.php2,791 ▲522.87 ▲0.1776.35 ▲3.2094.47 ▲3.68
Add New Post /wp-admin/post-new.php1,527 ▲2718.54 ▼0.20403.20 ▲6.19112.81 ▲1.93
Media Library /wp-admin/upload.php1,857 ▲505.06 ▲0.01157.29 ▲0.91125.18 ▲7.71
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins1,2532.0953.5769.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP23868201,493
Markdown1500143
JavaScript11028

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 code0.37
Average class complexity46.00
▷ Minimum class complexity10.00
▷ Maximum class complexity112.00
Average method complexity4.88
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods58
▷ Static methods11.72%
▷ Public methods5289.66%
▷ Protected methods610.34%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants14.55%
▷ Class constants2195.45%
▷ Public constants21100.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