10% demomentsomtres-multisite-post-clone

Code Review | DeMomentSomTres Multisite Post Clone

WordPress plugin DeMomentSomTres Multisite Post Clone scored 10% from 54 tests.

About plugin

  • Plugin page: demomentsomtres-m...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.1
  • WordPress version: 6.3.1
  • First release: Mar 23, 2015
  • Latest release: Mar 23, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 863 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/demomentsomtres-multisite-post-clone/demomentsomtres-multisite-post-clone.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; DeMomentSomTresMSPostClone has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼50.71ms] Passed 4 tests

This is a short check of server-side resources used by DeMomentSomTres Multisite Post Clone
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.79 ▼43.42
Dashboard /wp-admin2.10 ▼1.2010.43 ▼36.81
Posts /wp-admin/edit.php2.11 ▼1.256.69 ▼43.15
Add New Post /wp-admin/post-new.php2.10 ▼3.796.66 ▼79.47
Media Library /wp-admin/upload.php2.10 ▼1.135.72 ▼27.59

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for DeMomentSomTres Multisite Post Clone
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.15 ▼1.235.14 ▲3.0339.72 ▼4.09
Dashboard /wp-admin2,206 ▲155.90 ▲1.04106.23 ▼14.6640.83 ▼5.29
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0240.98 ▲0.2236.06 ▲0.13
Add New Post /wp-admin/post-new.php6,458 ▲4,92420.38 ▼2.67913.77 ▲302.1854.95 ▼6.07
Media Library /wp-admin/upload.php1,382 ▼34.15 ▼0.0998.06 ▼12.0840.68 ▼5.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/demomentsomtres-multisite-post-clone/demomentsomtres-multisite-post-clone.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; DeMomentSomTresMSPostClone has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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 items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/demomentsomtres-multisite-post-clone/demomentsomtres-multisite-post-clone.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: network, multisite, post clone, multilanguage, seo

demomentsomtres-multisite-post-clone/demomentsomtres-multisite-post-clone.php Passed 13 tests

The main file in "DeMomentSomTres Multisite Post Clone" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
DeMomentSomTres Multisite Post Clone allows to clone a post in the sites of the network

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected153 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1174895
PO File2101658

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
There are no PNG files in this plugin