87% easy-circle-content

Code Review | Easy Circle Contents

WordPress plugin Easy Circle Contents scored 87% from 54 tests.

About plugin

  • Plugin page: easy-circle-content
  • Plugin version: 1.20
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 5.8.1
  • First release: Feb 27, 2016
  • Latest release: Sep 8, 2021
  • Number of updates: 34
  • Update frequency: every 59.4 days
  • Top authors: manu225 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 3,304 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼642.66ms] Passed 4 tests

Server-side resources used by Easy Circle Contents
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0647.13 ▲18.97
Dashboard /wp-admin3.12 ▲0.0651.63 ▲16.90
Posts /wp-admin/edit.php3.17 ▲0.0639.50 ▼6.20
Add New Post /wp-admin/post-new.php5.48 ▲0.0583.71 ▼2,569.80
Media Library /wp-admin/upload.php3.06 ▲0.0625.59 ▼11.53

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: 2 new tables, no new options
New tables
wp_easy_circles_contents
wp_easy_circles_contents_data

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Circle Contents
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,722 ▲12716.07 ▲0.429.12 ▼1.2158.19 ▲7.62
Dashboard /wp-admin3,000 ▲666.71 ▲0.82164.49 ▲16.52144.62 ▲22.62
Posts /wp-admin/edit.php2,803 ▲642.79 ▲0.0868.20 ▲5.32104.94 ▲17.91
Add New Post /wp-admin/post-new.php2,086 ▲58619.53 ▲0.92388.30 ▲21.21125.93 ▲11.44
Media Library /wp-admin/upload.php1,791 ▼195.15 ▲0.12127.43 ▼17.61143.44 ▲22.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/easy-circle-content/views/icons_list.php
    • > /wp-content/plugins/easy-circle-content/views/circle_content.tpl.php
  • 30× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to get property 'height' of non-object in wp-content/plugins/easy-circle-content/views/circle_content.tpl.php on line 45
    • > PHP Notice
      Undefined variable: circle_content in wp-content/plugins/easy-circle-content/views/circle_content.tpl.php on line 11
    • > PHP Notice
      Trying to get property 'icon_size' of non-object in wp-content/plugins/easy-circle-content/views/circle_content.tpl.php on line 5
    • > PHP Notice
      Undefined variable: circle_content in wp-content/plugins/easy-circle-content/views/circle_content.tpl.php on line 28
    • > PHP Notice
      Trying to get property 'height' of non-object in wp-content/plugins/easy-circle-content/views/circle_content.tpl.php on line 28
    • > PHP Notice
      Trying to get property 'title_size' of non-object in wp-content/plugins/easy-circle-content/views/circle_content.tpl.php on line 11
    • > PHP Notice
      Trying to get property 'id' of non-object in wp-content/plugins/easy-circle-content/views/circle_content.tpl.php on line 3
    • > PHP Notice
      Undefined variable: circle_content in wp-content/plugins/easy-circle-content/views/circle_content.tpl.php on line 3
    • > PHP Notice
      Trying to get property 'icon_size' of non-object in wp-content/plugins/easy-circle-content/views/circle_content.tpl.php on line 4
    • > PHP Notice
      Undefined variable: circle_content in wp-content/plugins/easy-circle-content/views/circle_content.tpl.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt is a good inspiration

easy-circle-content/easy-circles-contents.php 69% from 13 tests

This is the main PHP file of "Easy Circle Contents" version 1.20, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-circle-content.php" instead of "easy-circles-contents.php")
  • Domain Path: Prefix the domain path with a forward slash character ("/")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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 not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,167 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7382302,059
CSS214086
JavaScript251622

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions11
▷ Named functions11100.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
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/manage.png2.02KB1.69KB▼ 15.99%
images/fb.png1.59KB1.00KB▼ 37.42%
images/remove.png1.27KB1.20KB▼ 5.76%
images/icon.png0.69KB0.68KB▼ 1.42%
images/edit.png0.87KB0.87KB0.00%