83% wp28-pague-com-pix

Code Review | WP28 Pague com Pix

WordPress plugin WP28 Pague com Pix scored83%from 54 tests.

About plugin

  • Plugin page: wp28-pague-com-pix
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.7.1
  • WordPress version: 6.3.1
  • First release: May 24, 2021
  • Latest release: May 26, 2021
  • Number of updates: 10
  • Update frequency: every 7.7 days
  • Top authors: guilheps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,323 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.16MB] [CPU: ▼11.14ms] Passed 4 tests

An overview of server-side resources used by WP28 Pague com Pix
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.88 ▼3.35
Dashboard /wp-admin3.20 ▼0.1030.17 ▼17.30
Posts /wp-admin/edit.php3.27 ▼0.0936.40 ▼15.15
Add New Post /wp-admin/post-new.php5.44 ▼0.4580.33 ▼8.77
Media Library /wp-admin/upload.php3.21 ▼0.0234.13 ▼0.04

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP28 Pague com Pix
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.35 ▲0.001.79 ▲0.3244.37 ▼0.50
Dashboard /wp-admin2,211 ▲315.57 ▼0.0884.46 ▼6.9542.59 ▼1.72
Posts /wp-admin/edit.php2,114 ▲141.98 ▲0.0339.14 ▲1.3637.62 ▼0.40
Add New Post /wp-admin/post-new.php1,539 ▲823.18 ▲0.14672.66 ▲54.8459.12 ▲8.60
Media Library /wp-admin/upload.php1,413 ▲194.17 ▼0.01112.65 ▲3.1849.56 ▲5.40

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 68× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/html.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'chillerlan\\QRCode\\QRCodeException' not found in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/src/Output/QRCodeOutputException.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP28\\PAGUECOMPIX\\Includes\\Fields\\BaseField' not found in wp-content/plugins/wp28-pague-com-pix/src/Includes/Fields/Checkbox.php:11
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/svg.php on line 15
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/fpdf.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/imagick.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'chillerlan\\QRCodeTest\\Data\\DatainterfaceTestAbstract' not found in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/tests/Data/NumberTest.php:21
    • > PHP Warning
      require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/public/qrcode.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QRImage' not found in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/QRImageWithLogo.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'chillerlan\\QRCodeTest\\Data\\DatainterfaceTestAbstract' not found in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/tests/Data/KanjiTest.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
4 plugin tags: woocommerce, payment, pix, discount

wp28-pague-com-pix/wp28-pague-com-pix.php 77% from 13 tests

Analyzing the main PHP file in "WP28 Pague com Pix" version 1.0.1
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.5")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin7,407 lines of code in 133 files:
LanguageFilesBlank linesComment linesLines of code
PHP1002,1747,9756,129
JSON400264
YAML8647234
Markdown3520228
PO File27074188
XML500141
HTML1260137
SVG30152
JavaScript40220
Dockerfile15210
Bourne Shell1203
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity6.93
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces21
Interfaces3
Traits4
Classes69
▷ Abstract classes68.70%
▷ Concrete classes6391.30%
▷ Final classes1625.40%
Methods361
▷ Static methods369.97%
▷ Public methods26773.96%
▷ Protected methods7721.33%
▷ Private methods174.71%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants71
▷ Global constants00.00%
▷ Class constants71100.00%
▷ Public constants6084.51%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/chillerlan/php-qrcode/examples/octocat.png2.41KB2.46KB0.00%
src/Assets/icon-pix.png4.23KB2.23KB▼ 47.37%
vendor/chillerlan/php-qrcode/examples/example_svg.png15.55KB6.70KB▼ 56.90%
vendor/chillerlan/php-qrcode/examples/example_image.png2.23KB1.09KB▼ 50.94%
src/Assets/logo_pix.png2.85KB1.83KB▼ 35.64%