77% markethingme-free-social-media-auto-submitter

Code Review | Markething.Me - Free Social Media Auto Submitter

WordPress plugin Markething.Me - Free Social Media Auto Submitter scored77%from 54 tests.

About plugin

  • Plugin page: markethingme-free...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2014
  • Latest release: Aug 28, 2014
  • Number of updates: 19
  • Update frequency: every 4.5 days
  • Top authors: markethingme (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /8,153 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.69MB] [CPU: ▼16.20ms] Passed 4 tests

Server-side resources used by Markething.Me - Free Social Media Auto Submitter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.64 ▼8.49
Dashboard /wp-admin3.32 ▲0.0149.13 ▼1.29
Posts /wp-admin/edit.php3.37 ▲0.0148.65 ▼2.46
Add New Post /wp-admin/post-new.php3.10 ▼2.7943.87 ▼49.21
Media Library /wp-admin/upload.php3.24 ▲0.0133.63 ▼4.65
Markething.Me /wp-admin/options-general.php?page=markethingme-free-social-media-auto-submitter/markething.me-free_social_signals_auto_submitter.php3.1838.06

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

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

Browser metrics Passed 4 tests

Markething.Me - Free Social Media Auto Submitter: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.21 ▼0.072.21 ▲0.4543.97 ▼0.51
Dashboard /wp-admin2,199 ▲255.57 ▲0.0185.37 ▼13.2144.53 ▲2.64
Posts /wp-admin/edit.php2,101 ▲12.00 ▲0.0040.68 ▲2.3536.69 ▲1.90
Add New Post /wp-admin/post-new.php1,702 ▲17420.55 ▼2.55622.97 ▼46.4864.34 ▲3.80
Media Library /wp-admin/upload.php1,404 ▲134.23 ▼0.00101.71 ▼3.9646.09 ▲2.50
Markething.Me /wp-admin/options-general.php?page=markethingme-free-social-media-auto-submitter/markething.me-free_social_signals_auto_submitter.php1,2012.0027.7233.69

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=markethingme-free-social-media-auto-submitter/markething.me-free_social_signals_auto_submitter.php
    • > Notice in wp-content/plugins/markethingme-free-social-media-auto-submitter/markething.me-free_social_signals_auto_submitter.php+1062
    Undefined variable: response
    • > GET request to /wp-admin/options-general.php?page=markethingme-free-social-media-auto-submitter/markething.me-free_social_signals_auto_submitter.php
    • > Notice in wp-content/plugins/markethingme-free-social-media-auto-submitter/markething.me-free_social_signals_auto_submitter.php+1062
    Trying to access array offset on value of type null

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
Almost there! Just 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 add_action() in wp-content/plugins/markethingme-free-social-media-auto-submitter/markething.me-free_social_signals_auto_submitter.php:375

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

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Plugin Settings), #2 (New Post Box), #3 (Published Post Box)
  • Tags: Please delete some tags, you are using 55 tag instead of maximum 10
You can take inspiration from this readme.txt

markethingme-free-social-media-auto-submitter/markething.me-free_social_signals_auto_submitter.php 69% from 13 tests

The main file in "Markething.Me - Free Social Media Auto Submitter" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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
  • Description: Please keep the plugin description shorter than 140 characters (currently 312 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("markethingme-free-social-media-auto-submitter.php" instead of "markething.me-free_social_signals_auto_submitter.php")
  • Domain Path: The domain path folder does not exist ("/lang")

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
Success! There were no dangerous files found in this plugin1,232 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161521,232

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions8
▷ Named functions8100.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
No PNG files were detected