10% demomentsomtres-people

Code Review | DeMomentSomTres People

WordPress plugin DeMomentSomTres People scored10%from 54 tests.

About plugin

  • Plugin page: demomentsomtres-p...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5+
  • WordPress version: 6.3.1
  • First release: Mar 24, 2013
  • Latest release: Aug 19, 2013
  • Number of updates: 11
  • Update frequency: every 13.6 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,260 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/demomentsomtres-people/index.php+142
    syntax error, unexpected end of file

Server metrics [RAM: ▼0.01MB] [CPU: ▼2.43ms] Passed 4 tests

Server-side resources used by DeMomentSomTres People
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.26 ▼2.01
Dashboard /wp-admin3.31 ▼0.0456.92 ▼2.04
Posts /wp-admin/edit.php3.36 ▲0.0042.45 ▼2.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.11 ▼3.11
Media Library /wp-admin/upload.php3.23 ▲0.0035.44 ▼1.06

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by DeMomentSomTres People
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.72 ▲0.161.79 ▼0.0541.55 ▼5.92
Dashboard /wp-admin2,195 ▲155.55 ▼0.0583.44 ▼5.9737.87 ▼3.54
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0338.41 ▲2.1435.05 ▲1.53
Add New Post /wp-admin/post-new.php1,526 ▼023.20 ▲0.09629.44 ▲1.6366.87 ▼31.66
Media Library /wp-admin/upload.php1,403 ▼04.12 ▼0.12102.91 ▲2.3144.23 ▼1.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/demomentsomtres-people/index.php on line 142

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (The plugin content in our web page http://demomentsomtres.com), #2 (The plugin admin page)
You can look at the official readme.txt

demomentsomtres-people/index.php 92% from 13 tests

Analyzing the main PHP file in "DeMomentSomTres People" version 1.3.0
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("demomentsomtres-people.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected346 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS125163
PHP1716119
JavaScript114464

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected