84% multisite-edit-my-sites

Code Review | Multisite Edit My Sites

WordPress plugin Multisite Edit My Sites scored 84% from 54 tests.

About plugin

  • Plugin page: multisite-edit-my...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Aug 16, 2019
  • Latest release: Aug 16, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: hijiri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 619 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.33ms] Passed 4 tests

Analyzing server-side resources used by Multisite Edit My Sites
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.66 ▼2.34
Dashboard /wp-admin3.31 ▲0.0044.12 ▼4.49
Posts /wp-admin/edit.php3.36 ▲0.0043.87 ▼3.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.24 ▼10.77
Media Library /wp-admin/upload.php3.23 ▲0.0033.96 ▲1.50

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Multisite Edit My Sites
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.144.53 ▲2.7647.21 ▼0.32
Dashboard /wp-admin2,203 ▲155.76 ▲0.9399.39 ▼15.9437.95 ▼6.23
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0436.33 ▼4.1634.78 ▼2.51
Add New Post /wp-admin/post-new.php1,514 ▼017.80 ▲0.42596.88 ▼73.9653.58 ▲0.50
Media Library /wp-admin/upload.php1,382 ▼94.27 ▲0.0693.82 ▼3.8341.88 ▼1.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/multisite-edit-my-sites/multisite-edit-my-sites.php:13

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

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: user, multisite, site

multisite-edit-my-sites/multisite-edit-my-sites.php 92% from 13 tests

The primary PHP file in "Multisite Edit My Sites" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected229 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP13917168
PO File17730
JavaScript10011
CSS10010
Markdown18010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity13.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%
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
There were not PNG files found in your plugin