84% demomentsomtres-debug

Code Review | DeMomentSomTres DEBUG

WordPress plugin DeMomentSomTres DEBUG scored84%from 54 tests.

About plugin

  • Plugin page: demomentsomtres-d...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 26, 2015
  • Latest release: Mar 28, 2019
  • Number of updates: 7
  • Update frequency: every 216.1 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,053 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by DeMomentSomTres DEBUG
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.48 ▼7.35
Dashboard /wp-admin3.32 ▲0.0144.35 ▼3.55
Posts /wp-admin/edit.php3.37 ▲0.0147.12 ▼0.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.86 ▼19.49
Media Library /wp-admin/upload.php3.24 ▲0.0135.73 ▲2.34

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for DeMomentSomTres DEBUG
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.34 ▼1.051.65 ▼0.2340.65 ▼4.65
Dashboard /wp-admin2,203 ▲265.81 ▲0.95100.15 ▼0.2539.64 ▼3.59
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0238.50 ▼2.7333.28 ▼2.21
Add New Post /wp-admin/post-new.php1,542 ▲2822.92 ▲5.35661.06 ▲46.6855.72 ▲8.32
Media Library /wp-admin/upload.php1,391 ▼04.25 ▲0.0498.25 ▼2.3943.76 ▼2.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/demomentsomtres-debug/demomentsomtres-debug.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: multisite, custom debug

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

The principal PHP file in "DeMomentSomTres DEBUG" v. 2.0 is loaded by WordPress automatically on each request
22 characters long description:
Debuging for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19922

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin