78% pixel-clusters

Code Review | Pixel Cluster

WordPress plugin Pixel Cluster scored78%from 54 tests.

About plugin

  • Plugin page: pixel-clusters
  • Plugin version: 1.0.4
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.4-6.3
  • WordPress version: 6.3.1
  • First release: Aug 23, 2019
  • Latest release: Aug 25, 2023
  • Number of updates: 9
  • Update frequency: every 162.6 days
  • Top authors: kakaroto84 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /1,262 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Pixel Cluster
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.45 ▼6.80
Dashboard /wp-admin3.33 ▼0.0250.05 ▼14.77
Posts /wp-admin/edit.php3.38 ▲0.0247.02 ▲2.76
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.91 ▼26.80
Media Library /wp-admin/upload.php3.25 ▲0.0233.45 ▼1.22

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Pixel Cluster: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.45 ▲0.191.67 ▼0.2739.90 ▼3.70
Dashboard /wp-admin2,225 ▲405.87 ▲0.81114.01 ▼5.7642.98 ▼3.68
Posts /wp-admin/edit.php2,108 ▲162.04 ▲0.0540.40 ▲3.5034.45 ▼0.95
Add New Post /wp-admin/post-new.php1,550 ▲3623.27 ▲5.82656.86 ▼23.6859.62 ▼15.77
Media Library /wp-admin/upload.php1,407 ▲194.42 ▲0.1797.96 ▲0.1342.23 ▼3.13

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/pixel-clusters/pixel-clusters.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_dropdown_categories() in wp-content/plugins/pixel-clusters/content/pixel-html.php:88

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 Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: tags, categories, pixel, cluster, posts

pixel-clusters/pixel-clusters.php 85% from 13 tests

Analyzing the main PHP file in "Pixel Cluster" version 1.0.4
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin350 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24431229
CSS110172
JavaScript115149

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin