77% easy-circle-content

Code Review | Easy Circle Contents

WordPress plugin Easy Circle Contents scored77%from 54 tests.

About plugin

  • Plugin page: easy-circle-content
  • Plugin version: 1.21
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Feb 27, 2016
  • Latest release: Jul 31, 2023
  • Number of updates: 41
  • Update frequency: every 66.2 days
  • Top authors: manu225 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,263 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼2.69ms] 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 /3.53 ▲0.0642.44 ▲2.35
Dashboard /wp-admin3.37 ▲0.0647.77 ▼1.95
Posts /wp-admin/edit.php3.42 ▲0.0647.77 ▲2.03
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.09 ▼10.14
Media Library /wp-admin/upload.php3.29 ▲0.0636.15 ▼0.71

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, 6 new options
New tables
wp_easy_circles_contents
wp_easy_circles_contents_data
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

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 /2,804 ▲4314.38 ▼0.101.86 ▲0.2643.80 ▲2.69
Dashboard /wp-admin2,198 ▲215.56 ▼0.1297.25 ▲13.6370.73 ▲26.50
Posts /wp-admin/edit.php2,119 ▲192.06 ▲0.0538.59 ▲1.4533.35 ▼3.79
Add New Post /wp-admin/post-new.php1,540 ▲1423.11 ▲0.10731.27 ▲54.3955.60 ▲0.71
Media Library /wp-admin/upload.php1,415 ▲154.31 ▲0.1096.57 ▼15.7069.14 ▲22.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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
      Undefined variable: circle_content 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 15
    • > 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: icons_list in wp-content/plugins/easy-circle-content/views/icons_list.php on line 4
    • > PHP Notice
      Undefined variable: circle_content in wp-content/plugins/easy-circle-content/views/circle_content.tpl.php on line 28
    • > PHP Notice
      Undefined variable: circle_content in wp-content/plugins/easy-circle-content/views/circle_content.tpl.php on line 28
    • > PHP Notice
      Undefined variable: circle_content in wp-content/plugins/easy-circle-content/views/circle_content.tpl.php on line 11
    • > PHP Notice
      Undefined variable: circle_content in wp-content/plugins/easy-circle-content/views/circle_content.tpl.php on line 19
    • > 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
      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.21, 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: Prefix the domain path with a forward slash character ("/")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • 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")

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,159 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7377302,051
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/fb.png1.59KB1.00KB▼ 37.42%
images/remove.png1.27KB1.20KB▼ 5.76%
images/edit.png0.87KB0.87KB0.00%
images/manage.png2.02KB1.69KB▼ 15.99%
images/icon.png0.69KB0.68KB▼ 1.42%