10% demomentsomtres-titol

Code Review | DeMomentSomTres Header

WordPress plugin DeMomentSomTres Header scored10%from 54 tests.

About plugin

  • Plugin page: demomentsomtres-t...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.5
  • WordPress version: 6.3.1
  • First release: Nov 17, 2013
  • Latest release: Apr 25, 2016
  • Number of updates: 7
  • Update frequency: every 132.6 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,106 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/demomentsomtres-titol/demomentsomtres-titol.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; TitolWidget has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼52.06ms] Passed 4 tests

Analyzing server-side resources used by DeMomentSomTres Header
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.25 ▼37.41
Dashboard /wp-admin2.08 ▼1.227.25 ▼43.01
Posts /wp-admin/edit.php2.08 ▼1.285.30 ▼44.39
Add New Post /wp-admin/post-new.php2.08 ▼3.815.34 ▼83.42
Media Library /wp-admin/upload.php2.08 ▼1.155.08 ▼29.68

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_titolwidget

Browser metrics Passed 4 tests

An overview of browser requirements for DeMomentSomTres Header
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.444.13 ▲2.2744.41 ▼6.40
Dashboard /wp-admin2,206 ▲215.86 ▲0.0196.42 ▼21.4237.83 ▼6.38
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0239.74 ▲2.3835.22 ▲0.98
Add New Post /wp-admin/post-new.php1,546 ▲1818.05 ▼0.24621.54 ▲4.9487.43 ▲24.69
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0495.45 ▼4.8639.43 ▼4.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/demomentsomtres-titol/demomentsomtres-titol.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; TitolWidget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_titolwidget
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
Please take a closer look at the following
  • 1× 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-titol/demomentsomtres-titol.php:13

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: content, heading

demomentsomtres-titol/demomentsomtres-titol.php Passed 13 tests

The main PHP script in "DeMomentSomTres Header" version 1.0.2 is automatically included on every request by WordPress
52 characters long description:
Inserts a header h1 containing the title in a widget

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
Everything looks great! No dangerous files found in this plugin50 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181350

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin