10% autoblog-wpmagic

Code Review | Autoblog WPMagic

WordPress plugin Autoblog WPMagic scored10%from 54 tests.

About plugin

  • Plugin page: autoblog-wpmagic
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Feb 16, 2022
  • Latest release: Feb 16, 2022
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: wpmagics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /630 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/autoblog-wpmagic/autoblog-wpmagic.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.85ms] Passed 4 tests

Analyzing server-side resources used by Autoblog WPMagic
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.74 ▼37.85
Dashboard /wp-admin2.09 ▼1.215.65 ▼47.58
Posts /wp-admin/edit.php2.09 ▼1.278.01 ▼43.70
Add New Post /wp-admin/post-new.php2.09 ▼3.805.48 ▼86.25
Media Library /wp-admin/upload.php2.09 ▼1.146.23 ▼28.95
/wp-admin/admin.php?page=autoblog-wpmagic2.096.67
Contact Us /wp-admin/admin.php?page=autoblog-wpm-free-contact2.096.24
Help /wp-admin/admin.php?page=autoblog-wpm-free-help2.095.01
autoblog-wpm-free-logs /wp-admin/admin.php?page=autoblog-wpm-free-logs2.095.80
Settings /wp-admin/admin.php?page=autoblog-wpm-free-settings2.096.15

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 8 new options
New WordPress options
autoblog-wpmagic_default
can_compress_scripts
db_upgraded
autoblog-wpmagic_data
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Autoblog WPMagic
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲18913.53 ▼0.829.40 ▲6.5641.01 ▲4.04
Dashboard /wp-admin2,240 ▲635.59 ▼0.0790.66 ▼1.6040.11 ▲1.01
Posts /wp-admin/edit.php2,158 ▲552.03 ▼0.0040.60 ▼2.7336.19 ▼0.18
Add New Post /wp-admin/post-new.php1,562 ▲3423.38 ▲0.40659.59 ▲45.2167.12 ▲7.37
Media Library /wp-admin/upload.php1,454 ▲574.17 ▼0.06104.54 ▼6.9445.96 ▼1.05
/wp-admin/admin.php?page=autoblog-wpmagic1,0482.0726.2532.65
Contact Us /wp-admin/admin.php?page=autoblog-wpm-free-contact8242.0726.1524.65
Help /wp-admin/admin.php?page=autoblog-wpm-free-help9642.0522.7928.79
autoblog-wpm-free-logs /wp-admin/admin.php?page=autoblog-wpm-free-logs8242.1823.2522.66
Settings /wp-admin/admin.php?page=autoblog-wpm-free-settings9582.0625.3027.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/autoblog-wpmagic/autoblog-wpmagic.php): failed to open stream: No such file or directory
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • autoblog-wpmagic_data
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • autoblog-wpmagic_default
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 13 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=autoblog-wpm-free-settings
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/autoblog-wpmagic/autoblog-wpmagic.php): failed to open stream: No such file or directory

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/autoblog-wpmagic/frontend/partials/view.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/autoblog-wpmagic/admin/partials/view.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/autoblog-wpmagic/settings.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'autoblogwpm\\WP_List_Table' not found in wp-content/plugins/autoblog-wpmagic/includes/class-tables.php:73

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

autoblog-wpmagic/autoblog-wpm-free.php 85% from 13 tests

The main PHP file in "Autoblog WPMagic" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("autoblog-wpmagic.php" instead of "autoblog-wpm-free.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 detected11,722 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,026
PHP155471,5062,333
CSS43319326
JavaScript4121637

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity42.33
▷ Minimum class complexity1.00
▷ Maximum class complexity147.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods125
▷ Static methods32.40%
▷ Public methods8769.60%
▷ Protected methods2116.80%
▷ Private methods1713.60%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants25
▷ Global constants2184.00%
▷ Class constants416.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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