10% dolomon

Code Review | Dolomon

WordPress plugin Dolomon scored10%from 54 tests.

About plugin

  • Plugin page: dolomon
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.2-4.9.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2018
  • Latest release: Feb 13, 2018
  • Number of updates: 16
  • Update frequency: every 1.8 days
  • Top authors: framasoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /765 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/dolomon/dolomon.php+117
    Undefined variable: pagenow

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.60ms] Passed 4 tests

A check of server-side resources used by Dolomon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1342.36 ▼0.68
Dashboard /wp-admin3.43 ▲0.0953.31 ▼10.43
Posts /wp-admin/edit.php3.54 ▲0.1948.74 ▼0.89
Add New Post /wp-admin/post-new.php5.67 ▼0.2275.47 ▼18.04
Media Library /wp-admin/upload.php3.35 ▲0.1236.60 ▼1.05
Dolomon /wp-admin/options-general.php?page=dolomon-settings3.3233.81

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_dolo_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dolomon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.72 ▲0.342.14 ▲0.2743.91 ▼1.53
Dashboard /wp-admin2,196 ▲185.53 ▼0.1282.59 ▼32.9435.68 ▼7.35
Posts /wp-admin/edit.php2,101 ▲11.94 ▼0.0734.85 ▼0.1633.71 ▲0.48
Add New Post /wp-admin/post-new.php7,087 ▲5,56121.20 ▼2.50873.23 ▲178.4367.64 ▲6.78
Media Library /wp-admin/upload.php1,401 ▼24.14 ▼0.0096.79 ▼21.3642.13 ▼8.85
Dolomon /wp-admin/options-general.php?page=dolomon-settings8572.0324.5926.22

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_dolo_widget
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% 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 0% 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/dolomon/dolomon.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/dolomon/metabox.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dolomon/widget.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/dolomon/settings.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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: stats, url

dolomon/dolomon.php Passed 13 tests

"Dolomon" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
Transforms an URL into an URL provided by a Dolomon server, which creates visit statistics

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
Good job! No executable or dangerous file extensions detected1,722 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP565911,053
JavaScript3144342
PO File18594202
CSS3220125

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity9.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%
Functions19
▷ Named functions1789.47%
▷ Anonymous functions210.53%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected