84% vitaledge-pixel

Code Review | VitalEdge Pixel Plugin

WordPress plugin VitalEdge Pixel Plugin scored84%from 54 tests.

About plugin

  • Plugin page: vitaledge-pixel
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2023
  • Latest release: Feb 18, 2023
  • Number of updates: 13
  • Update frequency: every 0.7 days
  • Top authors: vitaledge (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /449 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.72MB] [CPU: ▲3.36ms] Passed 4 tests

Server-side resources used by VitalEdge Pixel Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.7547.01 ▲5.79
Dashboard /wp-admin4.05 ▲0.7557.05 ▲4.04
Posts /wp-admin/edit.php4.10 ▲0.7552.47 ▲6.74
Add New Post /wp-admin/post-new.php6.59 ▲0.7095.86 ▼3.12
Media Library /wp-admin/upload.php3.91 ▲0.6942.94 ▲9.17

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 177 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for VitalEdge Pixel Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9813.55 ▼0.851.78 ▼0.2543.27 ▲1.11
Dashboard /wp-admin2,210 ▲224.92 ▲0.03108.65 ▼7.4597.32 ▲48.77
Posts /wp-admin/edit.php2,111 ▲402.02 ▼0.0441.65 ▲4.9831.95 ▼4.66
Add New Post /wp-admin/post-new.php1,531 ▼223.18 ▼0.03726.78 ▲49.2753.10 ▼2.79
Media Library /wp-admin/upload.php1,404 ▲194.25 ▲0.06103.24 ▼2.1073.62 ▲27.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 53× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\MessageFormatterInterface' not found in wp-content/plugins/vitaledge-pixel/vendor/guzzlehttp/guzzle/src/MessageFormatter.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/vitaledge-pixel/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/vitaledge-pixel/vendor/guzzlehttp/psr7/src/Response.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/vitaledge-pixel/vendor/guzzlehttp/psr7/src/InflateStream.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/vitaledge-pixel/vendor/guzzlehttp/promises/src/Coroutine.php:45
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/vitaledge-pixel/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/vitaledge-pixel/vendor/guzzlehttp/promises/src/CancellationException.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/vitaledge-pixel/vendor/guzzlehttp/psr7/src/Stream.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/vitaledge-pixel/vendor/guzzlehttp/psr7/src/ServerRequest.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestFactoryInterface' not found in wp-content/plugins/vitaledge-pixel/vendor/guzzlehttp/psr7/src/HttpFactory.php:26

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
No tags were detected

vitaledge-pixel/vitaledge-pixel-plugin.php 85% from 13 tests

"VitalEdge Pixel Plugin" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("vitaledge-pixel.php" instead of "vitaledge-pixel-plugin.php")
  • Description: The description should be shorter than 140 characters (currently 154 characters long)

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
No dangerous file extensions were detected15,732 lines of code in 164 files:
LanguageFilesBlank linesComment linesLines of code
PHP1322,1325,90910,533
Markdown181,35603,911
JSON10001,063
CSS12918196
JavaScript24120
SVG1009

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity12.31
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces16
Interfaces26
Traits3
Classes88
▷ Abstract classes00.00%
▷ Concrete classes88100.00%
▷ Final classes3640.91%
Methods779
▷ Static methods15019.26%
▷ Public methods66084.72%
▷ Protected methods40.51%
▷ Private methods11514.76%
Functions127
▷ Named functions3527.56%
▷ Anonymous functions9272.44%
Constants63
▷ Global constants00.00%
▷ Class constants63100.00%
▷ Public constants5282.54%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo-vitaledge.png1.01KB1.23KB0.00%