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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 48.94 ▲4.33 |
Dashboard /wp-admin | 3.67 ▲0.37 | 48.97 ▼1.53 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 51.40 ▲4.92 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 104.56 ▲7.15 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 42.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.35 ▼1.41 | 4.33 ▲2.51 | 38.38 ▼16.87 |
Dashboard /wp-admin | 2,206 ▲21 | 4.84 ▼1.02 | 110.34 ▼8.42 | 46.68 ▲2.49 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.06 ▲0.08 | 39.85 ▲2.94 | 34.58 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,536 ▼0 | 23.47 ▲0.33 | 660.28 ▲31.46 | 37.23 ▼14.82 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▼0.04 | 108.82 ▲8.63 | 46.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 62 | 737 | 1,189 | 4,218 |
Sass | 8 | 667 | 76 | 3,426 |
SVG | 2 | 0 | 0 | 808 |
JavaScript | 12 | 153 | 78 | 702 |
JSON | 1 | 0 | 0 | 36 |
Ruby | 1 | 6 | 12 | 9 |
CSS | 1 | 0 | 21 | 1 |
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 code | 0.30 |
Average class complexity | 7.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 3 | 7.69% |
▷ Concrete classes | 36 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 192 | |
▷ Static methods | 14 | 7.29% |
▷ Public methods | 170 | 88.54% |
▷ Protected methods | 8 | 4.17% |
▷ Private methods | 14 | 7.29% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 7 | 36.84% |
▷ Class constants | 12 | 63.16% |
▷ Public constants | 12 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/rangeBar.png | 2.74KB | 0.09KB | ▼ 96.79% |
images/select2.png | 0.60KB | 0.99KB | 0.00% |
images/slider.png | 3.34KB | 0.60KB | ▼ 81.97% |
images/ruler_bg.png | 2.74KB | 0.10KB | ▼ 96.50% |
images/open_modal.png | 3.32KB | 0.58KB | ▼ 82.45% |