10% marketeer

Code Review | Marketeer

WordPress plugin Marketeer scored 10% from 54 tests.

About plugin

  • Plugin page: marketeer
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.8.2
  • WordPress version: 5.8.1
  • First release: Jul 21, 2017
  • Latest release: Oct 3, 2017
  • Number of updates: 49
  • Update frequency: every 2.6 days
  • Top authors: marketeerlab (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 737 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-includes/class-wp-hook.php+303
    call_user_func_array() expects parameter 1 to be a valid callback, class 'Marketeer' not found

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

Server-side resources used by Marketeer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1532.29 ▲9.72
Dashboard /wp-admin3.09 ▲0.0446.44 ▼1.18
Posts /wp-admin/edit.php3.15 ▲0.0447.89 ▲2.64
Add New Post /wp-admin/post-new.php5.45 ▲0.0290.69 ▼565.51
Media Library /wp-admin/upload.php3.04 ▲0.0335.12 ▲0.56

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Marketeer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,698 ▲10216.30 ▲0.308.76 ▼1.0846.86 ▲0.52
Dashboard /wp-admin2,982 ▲485.93 ▼0.03140.05 ▼24.91129.52 ▲22.06
Posts /wp-admin/edit.php2,773 ▲342.72 ▲0.0264.40 ▼7.1680.16 ▼9.36
Add New Post /wp-admin/post-new.php1,511 ▼16118.85 ▲0.02399.52 ▲1.75106.85 ▲1.17
Media Library /wp-admin/upload.php1,770 ▼375.00 ▼0.05142.88 ▼9.81142.63 ▲27.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/class-wp-hook.php+303
    call_user_func_array() expects parameter 1 to be a valid callback, class 'Marketeer' not found

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
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 take a closer look at the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/marketeer/marketeer_core.php
    • > /wp-content/plugins/marketeer/wp_marketeer.php
    • > /wp-content/plugins/marketeer/includes/marketeer_core.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% 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 require attention:
  • Tags: There are too many tags (38 tag instead of maximum 10)
The official readme.txt might help

marketeer/wp_marketeer.php 92% from 13 tests

The main file in "Marketeer" v. 1.1 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: Name the main plugin file the same as the plugin slug ("marketeer.php" instead of "wp_marketeer.php")

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 plugin226 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35924226

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/logo_icon.png0.75KB0.91KB0.00%
logo.png2.81KB2.27KB▼ 19.44%
includes/logo.png2.81KB2.27KB▼ 19.44%
logo_icon.png0.75KB0.91KB0.00%