84% auto-ms-creator-id

Code Review | Auto MS CreatorID

WordPress plugin Auto MS CreatorID scored 84% from 54 tests.

About plugin

  • Plugin page: auto-ms-creator-id
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Feb 22, 2023
  • Latest release: Aug 23, 2023
  • Number of updates: 5
  • Update frequency: every 36.4 days
  • Top authors: benediktbergmann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 147 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.29MB] [CPU: ▼15.08ms] Passed 4 tests

An overview of server-side resources used by Auto MS CreatorID
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0034.62 ▼13.89
Dashboard /wp-admin3.35 ▲0.0446.57 ▼1.24
Posts /wp-admin/edit.php3.40 ▲0.0450.87 ▲4.05
Add New Post /wp-admin/post-new.php4.64 ▼1.2545.79 ▼49.24
Media Library /wp-admin/upload.php3.27 ▲0.0438.34 ▲4.24
Auto MS Creator ID /wp-admin/options-general.php?page=auto-ms-creator-id3.2431.42

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Auto MS CreatorID
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.16 ▼1.271.68 ▼0.5043.95 ▼0.17
Dashboard /wp-admin2,210 ▲224.85 ▼1.09105.47 ▼11.0640.55 ▼4.22
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0439.94 ▼2.9635.65 ▲1.44
Add New Post /wp-admin/post-new.php1,523 ▼1923.25 ▲5.13669.26 ▲16.2052.56 ▼4.17
Media Library /wp-admin/upload.php1,395 ▲44.22 ▲0.0397.74 ▼11.7444.51 ▲1.24
Auto MS Creator ID /wp-admin/options-general.php?page=auto-ms-creator-id7892.0324.8627.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/auto-ms-creator-id/autoMSCreatorId.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: ms, creator id

auto-ms-creator-id/autoMSCreatorId.php 85% from 13 tests

Analyzing the main PHP file in "Auto MS CreatorID" version 1.0.3
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("auto-ms-creator-id.php" instead of "autoMSCreatorId.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
Good job! No executable or dangerous file extensions detected180 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24222180

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity12.50
▷ Minimum class complexity5.00
▷ Maximum class complexity20.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 were not PNG files found in your plugin