10% dsmirror

Code Review | DSmirror

WordPress plugin DSmirror scored 10% from 54 tests.

About plugin

  • Plugin page: dsmirror
  • Plugin version: 1.01.04
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Jan 21, 2023
  • Latest release: Apr 11, 2023
  • Number of updates: 4
  • Update frequency: every 20.2 days
  • Top authors: tecknolab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 189 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • This plugin did not install gracefully
    • > User notice in wp-content/plugins/dsmirror/dsmirror-plugin-wp.php+42
    Activated cron for dsmirror. Next run: 2023-10-02T12:11:56Z

Server metrics [RAM: ▲0.37MB] [CPU: ▼1.49ms] Passed 4 tests

Analyzing server-side resources used by DSmirror
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4038.39 ▼10.88
Dashboard /wp-admin3.70 ▲0.4048.12 ▼0.67
Posts /wp-admin/edit.php3.76 ▲0.4046.61 ▲2.08
Add New Post /wp-admin/post-new.php6.22 ▲0.3487.87 ▲3.52
Media Library /wp-admin/upload.php3.56 ▲0.3439.26 ▲5.00
DSmirror /wp-admin/tools.php?page=dsmirror-plugin3.5134.00

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by DSmirror
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.41 ▲0.111.72 ▼0.3942.17 ▼5.61
Dashboard /wp-admin2,207 ▲165.83 ▼0.0598.53 ▼12.9838.13 ▼6.32
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0339.00 ▲3.2031.63 ▼1.23
Add New Post /wp-admin/post-new.php1,547 ▲1318.38 ▼4.84592.57 ▼21.0374.50 ▼0.31
Media Library /wp-admin/upload.php1,386 ▼24.21 ▲0.0097.66 ▼5.6141.62 ▼3.13
DSmirror /wp-admin/tools.php?page=dsmirror-plugin8362.1825.8730.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-content/plugins/dsmirror/dsmirror-plugin-wp.php+51
    Removed cron for dsmirror on plugin deactivation
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=dsmirror-plugin
    • > User notice in wp-content/plugins/dsmirror/dsmirror/dsmirror-plugin-front.php+76
    Initial replica config []

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dsmirror/dsmirror-plugin-wp.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #2 (Just set your appId/secret and select the tables to replicate inbound and/or outbound.)
Please take inspiration from this readme.txt

dsmirror/dsmirror-plugin-wp.php 92% from 13 tests

"DSmirror" version 1.01.04's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dsmirror.php" instead of "dsmirror-plugin-wp.php")

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
Everything looks great! No dangerous files found in this plugin1,616 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP111181661,616

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity7.43
▷ Minimum class complexity1.00
▷ Maximum class complexity106.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces1
Interfaces2
Traits0
Classes21
▷ Abstract classes14.76%
▷ Concrete classes2095.24%
▷ Final classes15.00%
Methods70
▷ Static methods11.43%
▷ Public methods5882.86%
▷ Protected methods45.71%
▷ Private methods811.43%
Functions25
▷ Named functions2392.00%
▷ Anonymous functions28.00%
Constants58
▷ Global constants00.00%
▷ Class constants58100.00%
▷ Public constants58100.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
No PNG files were detected