72% official-markerly-widget

Code Review | Official Markerly Widget

WordPress plugin Official Markerly Widget scored72%from 54 tests.

About plugin

  • Plugin page: official-markerly...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8
  • WordPress version: 6.3.1
  • First release: Feb 14, 2013
  • Latest release: Aug 8, 2015
  • Number of updates: 20
  • Update frequency: every 45.6 days
  • Top authors: markerlyINC (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /10,949 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.87ms] Passed 4 tests

Analyzing server-side resources used by Official Markerly Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0825.89 ▼18.34
Dashboard /wp-admin3.31 ▲0.0150.85 ▼9.61
Posts /wp-admin/edit.php3.36 ▲0.0152.04 ▲4.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.75 ▼3.69
Media Library /wp-admin/upload.php3.24 ▲0.0136.15 ▼3.82
Markerly Options /wp-admin/options-general.php?page=markerlyoptions3.2329.76

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Official Markerly Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,970 ▲22413.79 ▼0.6218.75 ▲16.7447.41 ▲4.22
Dashboard /wp-admin2,207 ▲194.89 ▼0.2299.80 ▼8.6839.29 ▼1.12
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0241.20 ▲4.8645.88 ▲4.61
Add New Post /wp-admin/post-new.php1,536 ▲1723.30 ▲0.14641.90 ▲26.2552.93 ▼14.00
Media Library /wp-admin/upload.php1,395 ▲74.15 ▼0.0698.09 ▼14.4742.13 ▼9.49
Markerly Options /wp-admin/options-general.php?page=markerlyoptions9241.7224.1546.11

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 does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • 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
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=markerlyoptions
    • > Notice in wp-content/plugins/official-markerly-widget/markerly-plugin.php+84
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=markerlyoptions
    • > Notice in wp-content/plugins/official-markerly-widget/markerly-plugin.php+85
    Undefined index: image_sharing
    • > GET request to /wp-admin/options-general.php?page=markerlyoptions
    • > Notice in wp-content/plugins/official-markerly-widget/markerly-plugin.php+86
    Undefined index: tip_style
    • > GET request to /wp-admin/options-general.php?page=markerlyoptions
    • > Notice in wp-content/plugins/official-markerly-widget/markerly-plugin.php+87
    Undefined index: services
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=markerlyoptions
    • > Notice in wp-content/plugins/official-markerly-widget/markerly-plugin.php+142
    Undefined index: image_services
    • > GET request to /wp-admin/options-general.php?page=markerlyoptions
    • > Notice in wp-content/plugins/official-markerly-widget/markerly-plugin.php+89
    Undefined index: service_color
    • > GET request to /wp-admin/options-general.php?page=markerlyoptions
    • > Notice in wp-content/plugins/official-markerly-widget/markerly-plugin.php+117
    Undefined index: pub_id

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 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/official-markerly-widget/markerly-plugin.php:25

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=markerlyoptions
    • > Network (severe)
    https://markerly.comassets/js/lib/colorpicker/jquery.miniColors.css - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
    • > GET request to /wp-admin/options-general.php?page=markerlyoptions
    • > Network (severe)
    https://markerly.comassets/js/lib/colorpicker/jquery.miniColors.min.js - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
    • > GET request to /wp-admin/options-general.php?page=markerlyoptions
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).miniColors is not a function" "TypeError: $(...).miniColors is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=markerlyoptions:168:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=markerlyoptions
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).miniColors is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: "It's free! Enjoy!"
  • Tags: There are too many tags (24 tag instead of maximum 10)
Please take inspiration from this readme.txt

official-markerly-widget/markerly-plugin.php 92% from 13 tests

The primary PHP file in "Official Markerly Widget" version 1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("official-markerly-widget.php" instead of "markerly-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin179 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12628130
Markdown121049

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.24
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%
Functions5
▷ Named functions5100.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 images were found in this plugin