84% connecto

Code Review | Connecto

WordPress plugin Connecto scored 84% from 54 tests.

About plugin

  • Plugin page: connecto
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.6
  • WordPress version: 5.9.2
  • First release: Jun 16, 2014
  • Latest release: Apr 27, 2015
  • Number of updates: 6
  • Update frequency: every 53.2 days
  • Top authors: connecto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,465 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼2.37MB] [CPU: ▼337.36ms] Passed 4 tests

Server-side resources used by Connecto
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0255.08 ▲2.04
Dashboard /wp-admin1.96 ▼1.444.19 ▼28.73
Posts /wp-admin/edit.php1.96 ▼1.683.86 ▼30.89
Add New Post /wp-admin/post-new.php1.96 ▼5.004.99 ▼1,267.02
Media Library /wp-admin/upload.php1.96 ▼1.343.69 ▼22.80

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Connecto
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,803 ▲8116.14 ▲0.145.97 ▼0.432.02 ▼0.55
Dashboard /wp-admin2,911 ▲566.25 ▲0.05115.63 ▼18.72171.87 ▲12.34
Posts /wp-admin/edit.php2,708 ▲142.95 ▼0.2964.05 ▲3.29144.40 ▲0.33
Add New Post /wp-admin/post-new.php1,674 ▲1317.58 ▲0.53421.00 ▼19.01159.01 ▲0.66
Media Library /wp-admin/upload.php1,715 ▲175.51 ▼0.02123.03 ▼27.48210.26 ▲15.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/connecto/public/class-connecto.php+117
    Undefined property: Connecto::$defaults

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/connecto/admin/views/admin.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/connecto/admin/views/notifications.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% 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
No plugin tags provided

connecto/connecto.php 92% from 13 tests

This is the main PHP file of "Connecto" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected303 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP890383293
JavaScript28210
CSS2020

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity15.00
▷ Minimum class complexity12.00
▷ Maximum class complexity18.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods724.14%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.55MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png162.29KB85.38KB▼ 47.39%
assets/screenshot-1.png152.47KB47.70KB▼ 68.71%
assets/screenshot-4.png68.36KB26.59KB▼ 61.11%
assets/screenshot-5.png38.77KB15.48KB▼ 60.07%
admin/assets/img/icon.png17.98KB0.27KB▼ 98.47%