79% pixcodes

Code Review | PixCodes

WordPress plugin PixCodes scored79%from 54 tests.

About plugin

  • Plugin page: pixcodes
  • Plugin version: 2.3.7
  • PHP compatiblity: 5.6.40+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 19, 2015
  • Latest release: Dec 30, 2022
  • Number of updates: 22
  • Update frequency: every 130.5 days
  • Top authors: euthelup (63.64%)pixelgrade (36.36%)babbardel (9.09%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /196,708 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
Installer ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▲3.72ms] Passed 4 tests

Server-side resources used by PixCodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3648.94 ▲4.33
Dashboard /wp-admin3.67 ▲0.3748.97 ▼1.53
Posts /wp-admin/edit.php3.72 ▲0.3751.40 ▲4.92
Add New Post /wp-admin/post-new.php6.19 ▲0.31104.56 ▲7.15
Media Library /wp-admin/upload.php3.53 ▲0.3042.01 ▲8.28

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

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

Browser metrics Passed 4 tests

Checking browser requirements for PixCodes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.35 ▼1.414.33 ▲2.5138.38 ▼16.87
Dashboard /wp-admin2,206 ▲214.84 ▼1.02110.34 ▼8.4246.68 ▲2.49
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0839.85 ▲2.9434.58 ▼1.14
Add New Post /wp-admin/post-new.php1,536 ▼023.47 ▲0.33660.28 ▲31.4637.23 ▼14.82
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.04108.82 ▲8.6346.50 ▲2.94

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 35× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/pixcodes/params/info.php
    • > /wp-content/plugins/pixcodes/shortcodes/WpGradeShortcode_PixFields.php
    • > /wp-content/plugins/pixcodes/shortcodes/WpGradeShortcode_Separator.php
    • > /wp-content/plugins/pixcodes/shortcodes/WpGradeShortcode_InfoBox.php
    • > /wp-content/plugins/pixcodes/pixcodes.php
    • > /wp-content/plugins/pixcodes/shortcodes/WpGradeShortcode_Heading.php
    • > /wp-content/plugins/pixcodes/shortcodes/WpGradeShortcode_Button.php
    • > /wp-content/plugins/pixcodes/params/icon_list.php
    • > /wp-content/plugins/pixcodes/params/tags.php
    • > /wp-content/plugins/pixcodes/shortcodes/WpGradeShortcode_Icon.php
  • 104× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pixcodes/shortcodes/templates/quote.php:6
    • > PHP Notice
      Undefined variable: param in wp-content/plugins/pixcodes/params/text.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pixcodes/params/switch.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pixcodes/params/icon_list.php on line 10
    • > PHP Notice
      Undefined variable: param in wp-content/plugins/pixcodes/params/select.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pixcodes/params/color.php on line 7
    • > PHP Notice
      Undefined variable: param in wp-content/plugins/pixcodes/params/info.php on line 7
    • > PHP Notice
      Undefined variable: param in wp-content/plugins/pixcodes/params/multiple-select.php on line 9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pixcodes/params/icon_list.php on line 9
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/pixcodes/params/icon_list.php on line 10

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

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: buttons, tabs, shortcodes, sliders, insert...

pixcodes/pixcodes.php Passed 13 tests

The primary PHP file in "PixCodes" version 2.3.7 is used by WordPress to initiate all plugin functionality
85 characters long description:
WordPress shortcodes plugin everywhere. Loaded with shortcodes, awesomeness and more.

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
There were no executable files found in this plugin9,200 lines of code in 87 files:
LanguageFilesBlank linesComment linesLines of code
PHP627371,1894,218
Sass8667763,426
SVG200808
JavaScript1215378702
JSON10036
Ruby16129
CSS10211

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.41
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes39
▷ Abstract classes37.69%
▷ Concrete classes3692.31%
▷ Final classes00.00%
Methods192
▷ Static methods147.29%
▷ Public methods17088.54%
▷ Protected methods84.17%
▷ Private methods147.29%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants736.84%
▷ Class constants1263.16%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/rangeBar.png2.74KB0.09KB▼ 96.79%
images/select2.png0.60KB0.99KB0.00%
images/slider.png3.34KB0.60KB▼ 81.97%
images/ruler_bg.png2.74KB0.10KB▼ 96.50%
images/open_modal.png3.32KB0.58KB▼ 82.45%