83% did-someone-clone-me

Code Review | Did someone clone me?

WordPress plugin Did someone clone me? scored83%from 54 tests.

About plugin

  • Plugin page: did-someone-clone-me
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 7, 2022
  • Latest release: Nov 25, 2023
  • Number of updates: 11
  • Update frequency: every 46.0 days
  • Top authors: didsomeonecloneme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /333 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.48ms] Passed 4 tests

Server-side resources used by Did someone clone me?
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.21 ▼2.69
Dashboard /wp-admin3.33 ▼0.0146.48 ▼15.91
Posts /wp-admin/edit.php3.38 ▲0.0344.33 ▲1.08
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.96 ▲5.63
Media Library /wp-admin/upload.php3.26 ▲0.0330.66 ▼4.41
Did someone clone me /wp-admin/options-general.php?page=did-someone-clone-me3.2228.32

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Did someone clone me?
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲2214.34 ▼0.001.57 ▼0.3138.91 ▼3.55
Dashboard /wp-admin2,193 ▲125.55 ▼0.1790.60 ▼24.4741.31 ▼0.48
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.2140.11 ▲3.8936.51 ▲2.54
Add New Post /wp-admin/post-new.php1,529 ▲323.01 ▼0.16605.61 ▼92.7951.71 ▼2.01
Media Library /wp-admin/upload.php1,404 ▲14.16 ▼0.0194.70 ▲0.5541.63 ▲1.15
Did someone clone me /wp-admin/options-general.php?page=did-someone-clone-me7942.0023.4327.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/did-someone-clone-me/did-someone-clone-me.php:150

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Requires at least: Version not formatted correctly
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === did-someone-clone-me === )
You can take inspiration from this readme.txt

did-someone-clone-me/did-someone-clone-me.php 92% from 13 tests

This is the main PHP file of "Did someone clone me?" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)

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
There were no executable files found in this plugin100 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11449100

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.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 images were found in this plugin