68% pixelgrade-assistant

Code Review | Pixelgrade Assistant

WordPress plugin Pixelgrade Assistant scored68%from 54 tests.

About plugin

  • Plugin page: pixelgrade-assistant
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6.40+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.9-5.9.4
  • WordPress version: 6.3.1
  • First release: Aug 8, 2019
  • Latest release: Apr 18, 2022
  • Number of updates: 38
  • Update frequency: every 25.9 days
  • Top authors: pixelgrade (100%)

Code review

54 tests

User reviews

1 review

Install metrics

4,000+ active /69,704 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.26MB] [CPU: ▲3.26ms] Passed 4 tests

Server-side resources used by Pixelgrade Assistant
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.13 ▲1.6752.41 ▲11.02
Dashboard /wp-admin5.31 ▲1.9772.64 ▲4.28
Posts /wp-admin/edit.php5.32 ▲1.9667.60 ▲11.81
Add New Post /wp-admin/post-new.php5.37 ▼0.5185.21 ▼14.08
Media Library /wp-admin/upload.php5.16 ▲1.9366.17 ▲28.93
/wp-admin/admin.php?page=pixelgrade_assistant-setup-wizard5.0154.11
Dashboard /wp-admin/admin.php?page=pixelgrade_assistant5.0863.46

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 125 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
pixassist_options
widget_theysaidso_widget
pixelgrade_assistant_version
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Pixelgrade Assistant
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,020 ▲23422.58 ▲7.971.76 ▼0.4133.28 ▼10.24
Dashboard /wp-admin2,386 ▲18010.55 ▲5.66271.37 ▲163.7783.42 ▲44.63
Posts /wp-admin/edit.php2,274 ▲1747.41 ▲5.4195.81 ▲54.5883.29 ▲43.96
Add New Post /wp-admin/post-new.php3,335 ▲1,80113.49 ▼9.99250.59 ▼386.74147.09 ▲85.53
Media Library /wp-admin/upload.php1,546 ▲14610.02 ▲5.83153.21 ▲38.5496.57 ▲46.22
/wp-admin/admin.php?page=pixelgrade_assistant-setup-wizard2013.42100.3312.11
Dashboard /wp-admin/admin.php?page=pixelgrade_assistant8387.47205.5072.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Error in wp-content/plugins/pixelgrade-assistant/includes/modules/conditional-updates/class-pixelgrade_assistant-conditional-updates.php+408
    Uncaught Error: Class 'Composer\Semver\VersionParser' not found in wp-content/plugins/pixelgrade-assistant/includes/modules/conditional-updates/class-pixelgrade_assistant-conditional-updates.php:408
    Stack trace:
    #0 wp-content/plugins/pixelgrade-assistant/includes/modules/conditional-updates/class-pixelgrade_assistant-conditional-updates.php(201): PixelgradeAssistant_Conditional_Updates->get_target_plugins_version_ranges()
    #1 wp-includes/class-wp-hook.php(312): PixelgradeAssistant_Conditional_Updates->handle_transient_update_plugins()
    #2 wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #3 wp-includes/option.php(2053): apply_filters()
    #4 wp-admin/includes/plugin.php(1031): set_site_transient()
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • pixassist_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • pixelgrade_assistant_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/pixelgrade-assistant/vendor/classic-editor/classic-editor.php
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pixelgrade-assistant/includes/theme-helpers/jetpack-fallbacks/genericons.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Composer\\Semver\\Constraint\\ConstraintInterface' not found in wp-content/plugins/pixelgrade-assistant/vendor/composer/semver/src/Constraint/Constraint.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/pixelgrade-assistant/admin/required-plugins/class-tgm-plugin-activation.php:2047
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pixelgrade-assistant/includes/theme-helpers/jetpack-fallbacks/social-menu/icon-functions.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Composer\\Semver\\Constraint\\ConstraintInterface' not found in wp-content/plugins/pixelgrade-assistant/vendor/composer/semver/src/Constraint/MatchNoneConstraint.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Composer\\Semver\\Constraint\\ConstraintInterface' not found in wp-content/plugins/pixelgrade-assistant/vendor/composer/semver/src/Constraint/MultiConstraint.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Composer\\Semver\\Constraint\\ConstraintInterface' not found in wp-content/plugins/pixelgrade-assistant/vendor/composer/semver/src/Constraint/MatchAllConstraint.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: pixelgrade, interactive, demo-data, support, documentation...

pixelgrade-assistant/pixelgrade-assistant.php 92% from 13 tests

The principal PHP file in "Pixelgrade Assistant" v. 1.4.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin95,962 lines of code in 108 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1416,71219,95381,103
PHP583,0686,01812,338
Markdown53190945
CSS1210682730
SVG1503684
JSON300154
Sass1808

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity47.93
▷ Minimum class complexity1.00
▷ Maximum class complexity306.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces4
Interfaces1
Traits0
Classes42
▷ Abstract classes00.00%
▷ Concrete classes42100.00%
▷ Final classes00.00%
Methods625
▷ Static methods18329.28%
▷ Public methods53485.44%
▷ Protected methods416.56%
▷ Private methods508.00%
Functions48
▷ Named functions4083.33%
▷ Anonymous functions816.67%
Constants42
▷ Global constants716.67%
▷ Class constants3583.33%
▷ Public constants35100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected