78% wp2d-auto-post

Code Review | wp2d Auto Post

WordPress plugin wp2d Auto Post scored78%from 54 tests.

About plugin

  • Plugin page: wp2d-auto-post
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 6.3.1
  • First release: Sep 25, 2021
  • Latest release: Sep 25, 2021
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: korchiy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /429 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.43ms] Passed 4 tests

Analyzing server-side resources used by wp2d Auto Post
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.21 ▼4.30
Dashboard /wp-admin3.34 ▲0.0344.96 ▼3.02
Posts /wp-admin/edit.php3.39 ▲0.0346.48 ▼3.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.06 ▼2.77
Media Library /wp-admin/upload.php3.26 ▲0.0336.33 ▲0.03
WP2D /wp-admin/options-general.php?page=wp2d/wp2d-options.php3.0724.18

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for wp2d Auto Post
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼1.401.70 ▼0.1341.10 ▼0.72
Dashboard /wp-admin2,210 ▲225.88 ▲0.96114.35 ▲5.0439.52 ▼5.50
Posts /wp-admin/edit.php2,096 ▲72.18 ▲0.0039.05 ▼1.3933.04 ▼1.01
Add New Post /wp-admin/post-new.php6,247 ▲4,71421.70 ▼1.45864.34 ▲166.1472.59 ▲13.09
Media Library /wp-admin/upload.php1,392 ▲14.21 ▼0.0196.67 ▼2.9242.98 ▼2.75
WP2D /wp-admin/options-general.php?page=wp2d/wp2d-options.php280.440.083.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp2d-auto-post/wp2d-options.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=wp2d/wp2d-options.php
    • > Network (severe)
    wp-admin/options-general.php?page=wp2d/wp2d-options.php - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp2d-auto-post === )
The official readme.txt is a good inspiration

wp2d-auto-post/wp2d.php 92% from 13 tests

The main file in "wp2d Auto Post" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp2d-auto-post.php" instead of "wp2d.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected213 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24152213

PHP code Passed 2 tests

Analyzing 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.48
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin